Skip to content

Commit e6f0d1b

Browse files
authored
fix: notify activity called for any proxied request (#7356)
1 parent f449ad8 commit e6f0d1b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/proxy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,15 +859,13 @@ const onRequest = async (
859859
}
860860

861861
const maybeNotifyActivity = () => {
862-
if (req.method === 'GET' && api && process.env.NETLIFY_DEV_SERVER_ID) {
862+
if (api && process.env.NETLIFY_DEV_SERVER_ID && (req.method === 'GET' || req.url?.startsWith('/.ntlfy-dev/'))) {
863863
notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID)
864864
}
865865
}
866866

867867
if (match) {
868-
if (!isExternal(match)) {
869-
maybeNotifyActivity()
870-
}
868+
maybeNotifyActivity()
871869

872870
// We don't want to generate an ETag for 3xx redirects.
873871
// @ts-expect-error TS(7031) FIXME: Binding element 'statusCode' implicitly has an 'an... Remove this comment to see the full error message

0 commit comments

Comments
 (0)