You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not able to reproduce this on 9.0.3 or the latest canary of Next.js (9.0.4-canary.3). Can you provide a link to a minimal repo with this issue. It's working with the below next.config.js and example page
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 31, 2022
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Using Next.js v9.0.3
Describe the bug
During development, the public runtime config is empty, even though publicRuntimeConfig is set in the config file.
However, the config is available when the project is built and running on production.
To Reproduce
next.config.js
file.window.__NEXT_DATA__.runtimeConfig
as shown in the image above.{}
, even though public runtime config should have API_URL value.Expected behavior
publicRuntimeConfig should be available both in development and production.
System information
The text was updated successfully, but these errors were encountered: