We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab8f6c commit b05416aCopy full SHA for b05416a
src/utils/proxy.ts
@@ -859,8 +859,10 @@ const onRequest = async (
859
}
860
861
const maybeNotifyActivity = () => {
862
- const isInternalRequest = req.url?.startsWith('/.ntlfy-dev/') && req.method !== 'HEAD'
863
- if (api && process.env.NETLIFY_DEV_SERVER_ID && (req.method === 'GET' || isInternalRequest)) {
+ const skipInternalUrls = ['/.ntlfy-dev/up', '/.ntlfy-dev/health']
+ const isInternalRequest = req.url?.startsWith('/.ntlfy-dev/')
864
+ const trackRequest = isInternalRequest ? !skipInternalUrls.includes(req.url ?? '') : req.method === 'GET'
865
+ if (api && process.env.NETLIFY_DEV_SERVER_ID && trackRequest) {
866
notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID)
867
868
0 commit comments