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
results in expected path to be "next.standalone.config.js" from root of workspace
Following errir is received
λ (Dynamic) server-rendered on demand using Node.js
> NX Cannot find the Next.js config file: next.standalone.config.js. Is the path correct in project.json?
Pass --verbose to see the stacktrace.
Expected Behavior
should build standalone nextjs app
GitHub Repo
No response
Steps to Reproduce
Add a new nextjs app in workspace (mono repo)
change production nextConfig to a different path relative to workspace root "app/my-site/next.standalone.config.js"
λ (Dynamic) server-rendered on demand using Node.js
> NX Cannot find the Next.js config file: next.standalone.config.js. Is the path correct in project.json?
Pass --verbose to see the stacktrace.
Package Manager Version
pnpm: 8.10.2
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
It seems that nextConfig path is first evaluated relative to the projectRoot and then checked against the workspaceRoot.
The text was updated successfully, but these errors were encountered:
Current Behavior
when nextConfig is provided in monorepo setting, actual path of nextConfig is wrongly evaluated
results in expected path to be "next.standalone.config.js" from root of workspace
Following errir is received
Expected Behavior
should build standalone nextjs app
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
pnpm: 8.10.2
Operating System
Additional Information
It seems that nextConfig path is first evaluated relative to the projectRoot and then checked against the workspaceRoot.
The text was updated successfully, but these errors were encountered: