Skip to content

Commit 28748ee

Browse files
committed
update assetPrefix to new environment variable to not break vercel preview urls
1 parent 6ebdb17 commit 28748ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/next.config.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ const nextConfig = {
5050
basePath: '',
5151
assetPrefix:
5252
process.env.NODE_ENV === 'production'
53-
? `https://${process.env.NEXT_PUBLIC_DOMAIN}`
53+
? `https://${
54+
process.env.DASHBOARD_PROXY_DOMAIN ?? process.env.VERCEL_URL
55+
}`
5456
: undefined,
5557
headers: async () => [
5658
{

0 commit comments

Comments
 (0)