Skip to content

Commit 11e38e1

Browse files
committed
wip
1 parent 8f8ed05 commit 11e38e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/dashboard/src/utils/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ export function getUrl() {
33
return process.env.NEXT_PUBLIC_URL;
44
}
55

6-
if (process.env.VERCEL_TARGET_ENV === "preview") {
7-
return `https://${process.env.VERCEL_URL}`;
6+
if (process.env.NEXT_PUBLIC_VERCEL_TARGET_ENV === "preview") {
7+
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
88
}
99

1010
return "http://localhost:3001";

turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"SLACK_CLIENT_SECRET",
3535
"SLACK_CLIENT_ID",
3636
"SLACK_SIGNING_SECRET",
37-
"NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL",
3837
"GMAIL_CLIENT_ID",
3938
"GMAIL_CLIENT_SECRET",
4039
"GMAIL_REDIRECT_URI",
@@ -43,7 +42,8 @@
4342
"OUTLOOK_REDIRECT_URI",
4443
"MIDDAY_ENCRYPTION_KEY",
4544
"NEXT_PUBLIC_URL",
46-
"VERCEL_TARGET_ENV"
45+
"NEXT_PUBLIC_VERCEL_TARGET_ENV",
46+
"NEXT_PUBLIC_VERCEL_URL"
4747
],
4848
"inputs": ["$TURBO_DEFAULT$", ".env"],
4949
"dependsOn": ["^build"],

0 commit comments

Comments
 (0)