Skip to content

Commit 1e140cb

Browse files
committed
fix: don’t hardcode 3000; use the actual port
1 parent 837a461 commit 1e140cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/next.constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const NEXT_DATA_URL = process.env.NEXT_PUBLIC_DATA_URL
9898
? process.env.NEXT_PUBLIC_DATA_URL
9999
: VERCEL_ENV
100100
? `${BASE_URL}${BASE_PATH}/en/next-data/`
101-
: `http://localhost:3000/en/next-data/`;
101+
: `http://localhost:${process.env.PORT ?? 3000}/en/next-data/`;
102102

103103
/**
104104
* This ReGeX is used to remove the `index.md(x)` suffix of a name and to remove

0 commit comments

Comments
 (0)