Skip to content

Commit 31f7b03

Browse files
committed
fix: don’t hardcode 3000; use the actual port
1 parent 1f27135 commit 31f7b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apps/site/next.constants.mjs

+1-1
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)