Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit a4c5fe8

Browse files
committed
fix: web config
1 parent 6be394a commit a4c5fe8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/web/next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ module.exports = withSentryConfig(
1010
{
1111
reactStrictMode: false,
1212
env: {
13-
VERCEL_GIT_PULL_REQUEST_NUMBER: process.env.VERCEL_GIT_PULL_REQUEST_NUMBER,
13+
NEXT_PUBLIC_PULL_REQUEST_NUMBER: process.env.VERCEL_GIT_PULL_REQUEST_NUMBER,
14+
NEXT_PUBLIC_APP_ENV: process.env.NEXT_PUBLIC_APP_ENV,
1415
},
1516
},
1617
sentryWebpackPluginOptions,

packages/web/src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const IS_PRODUCTION = process.env.NEXT_PUBLIC_APP_ENV === "production"
22
export const IS_STAGING = process.env.NEXT_PUBLIC_APP_ENV === "staging"
3-
export const IS_TEST = process.env.NEXT_PUBLIC_APP_ENV === "test"
4-
export const IS_DEV = !IS_TEST && !IS_STAGING && !IS_PRODUCTION
3+
4+
export const IS_DEV = !IS_STAGING && !IS_PRODUCTION
55

66
export const SENTRY_DSN = "https://[email protected]/5741383"
77

0 commit comments

Comments
 (0)