Skip to content

Commit 6305a0c

Browse files
authored
fix(v8/nuxt): Detect Azure Function runtime for flushing with timeout (#15297)
Backport of #15288
1 parent d459577 commit 6305a0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/nuxt/src/runtime/plugins/sentry.server.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ export default defineNitroPlugin(nitroApp => {
5252
});
5353

5454
async function flushIfServerless(): Promise<void> {
55-
const isServerless = !!process.env.LAMBDA_TASK_ROOT || !!process.env.VERCEL || !!process.env.NETLIFY;
55+
const isServerless =
56+
!!process.env.FUNCTIONS_WORKER_RUNTIME || // Azure Functions
57+
!!process.env.LAMBDA_TASK_ROOT || // AWS Lambda
58+
!!process.env.VERCEL ||
59+
!!process.env.NETLIFY;
5660

5761
// @ts-expect-error This is not typed
5862
if (GLOBAL_OBJ[Symbol.for('@vercel/request-context')]) {

0 commit comments

Comments
 (0)