Skip to content

Commit

Permalink
Fix Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Nov 22, 2024
1 parent 3158828 commit a48aae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack-shared/src/utils/env.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function getEnvVariable(name: string, defaultValue?: string | undefined):

export function getNextRuntime() {
// This variable is compiled into the client bundle, so we can't use getEnvVariable here.
return process.env.NEXT_RUNTIME;
return process.env.NEXT_RUNTIME || throwErr("Missing environment variable: NEXT_RUNTIME");
}

export function getNodeEnvironment() {
Expand Down

0 comments on commit a48aae1

Please sign in to comment.