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
When using a custom Next.js, using the default custom server template, the following warning is logged in the console output:
Warning, in Nx 18 environment variables starting with NX_ will not be available in the browser, and currently will not work with @nx/next:server executor.
Please rename the following environment variables: NX_NEXT_PUBLIC_DIR, NX_FILE_TO_RUN, NX_MAPPINGS using Next.js' built-in support for environment variables. Reference https://nextjs.org/docs/pages/api-reference/next-config-js/env
This appears to be due to this line in the generated server/main.ts file:
Warning, in Nx 18 environment variables starting with NX_ will not be available in the browser, and currently will not work with @nx/next:server executor.
Please rename the following environment variables: NX_NEXT_PUBLIC_DIR, NX_FILE_TO_RUN, NX_MAPPINGS using Next.js' built-in support for environment variables. Reference https://nextjs.org/docs/pages/api-reference/next-config-js/env
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
I'm warnings about the following variables in my setup: NX_BATCH_MODE, NX_INVOKED_BY_RUNNER.
Would it make sense to add an interface for users to add variables which should be ignored?
Current Behavior
When using a custom Next.js, using the default custom server template, the following warning is logged in the console output:
This appears to be due to this line in the generated
server/main.ts
file:Expected Behavior
There shouldn't be any warnings when serving a Next.js application with a custom server.
GitHub Repo
No response
Steps to Reproduce
nx g @nx/next:application
nx g @nx/next:custom-server
nx serve [app-name]
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: