Skip to content

Commit 82fef47

Browse files
committed
fix preview
1 parent 199ae04 commit 82fef47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web/src/lib/constants.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import dynamic from 'next/dynamic';
22

33
export const baseURL = (() => {
4-
// Production URL
5-
if (process.env.NEXT_PUBLIC_VERCEL_URL) {
6-
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
7-
}
8-
94
// Preview deployments
105
if (process.env.VERCEL_ENV === 'preview') {
116
return `https://${process.env.VERCEL_URL}`;
127
}
8+
9+
// Production URL
10+
if (process.env.NEXT_PUBLIC_VERCEL_URL) {
11+
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
12+
}
1313

1414
// Local development
1515
return 'http://localhost:3000';

0 commit comments

Comments
 (0)