Skip to content

Commit 4dc1a67

Browse files
committed
fix preview
1 parent 82fef47 commit 4dc1a67

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

apps/web/src/lib/constants.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
import dynamic from 'next/dynamic';
22

3-
export const baseURL = (() => {
4-
// Preview deployments
5-
if (process.env.VERCEL_ENV === 'preview') {
6-
return `https://${process.env.VERCEL_URL}`;
7-
}
8-
9-
// Production URL
10-
if (process.env.NEXT_PUBLIC_VERCEL_URL) {
11-
return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`;
12-
}
13-
14-
// Local development
15-
return 'http://localhost:3000';
16-
})();
3+
export const baseURL = process.env.NEXT_PUBLIC_VERCEL_URL;
174

185
export type ToolState = 'available' | 'installed' | 'configured';
196

0 commit comments

Comments
 (0)