We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f27135 commit 31f7b03Copy full SHA for 31f7b03
1 file changed
apps/site/next.constants.mjs
@@ -98,7 +98,7 @@ export const NEXT_DATA_URL = process.env.NEXT_PUBLIC_DATA_URL
98
? process.env.NEXT_PUBLIC_DATA_URL
99
: VERCEL_ENV
100
? `${BASE_URL}${BASE_PATH}/en/next-data/`
101
- : `http://localhost:3000/en/next-data/`;
+ : `http://localhost:${process.env.PORT ?? 3000}/en/next-data/`;
102
103
/**
104
* This ReGeX is used to remove the `index.md(x)` suffix of a name and to remove
0 commit comments