We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a9871 commit 182a1ebCopy full SHA for 182a1eb
apps/web/src/lib/constants.ts
@@ -1,6 +1,11 @@
1
import dynamic from 'next/dynamic';
2
3
export const baseURL = (() => {
4
+ // Preview deployments
5
+ if (process.env.VERCEL_PUBLIC_ENV === 'preview') {
6
+ return `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL}`;
7
+ }
8
+
9
// Production URL
10
if (process.env.NEXT_PUBLIC_VERCEL_URL) {
11
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
0 commit comments