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 199ae04 commit 82fef47Copy full SHA for 82fef47
apps/web/src/lib/constants.ts
@@ -1,15 +1,15 @@
1
import dynamic from 'next/dynamic';
2
3
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
-
9
// Preview deployments
10
if (process.env.VERCEL_ENV === 'preview') {
11
return `https://${process.env.VERCEL_URL}`;
12
}
+
+ // Production URL
+ if (process.env.NEXT_PUBLIC_VERCEL_URL) {
+ return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
+ }
13
14
// Local development
15
return 'http://localhost:3000';
0 commit comments