We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
have next generated project with project.json
"targets": { "build": { "executor": "@nx/next:build", "outputs": ["{options.outputPath}"], "options": { "outputPath": "dist" }, ...
run
nx build nextjsproj -c production --outputPath=dist/sub
and you get dist/sub/* files but no .next/ dir the .next/ dir is generated in dist/.next
dist/sub/*
.next/
dist/.next
dist/sub/* dist/sub/.next
.next should be colocated with rest of output so you can run npm run start from the dist/sub directory
.next
npm run start
dist/sub
No response
> NX Falling back to ts-node for local typescript execution. This may be a little slower. - To fix this, ensure @swc-node/register and @swc/core have been installed > NX Report complete - copy this into the issue template Node : 18.16.0 OS : linux-x64 pnpm : 8.5.0 nx : 16.4.0 @nx/js : 16.4.0 @nx/jest : 16.4.0 @nx/linter : 16.4.0 @nx/workspace : 16.4.0 @nx/cypress : 16.4.0 @nx/devkit : 16.4.0 @nx/esbuild : 16.4.0 @nx/eslint-plugin : 16.4.0 @nx/next : 16.4.0 @nx/node : 16.4.0 @nx/react : 16.4.0 @nx/rollup : 16.4.0 @nx/storybook : 16.4.0 @nrwl/tao : 16.4.0 @nx/web : 16.4.0 @nx/webpack : 16.4.0 typescript : 4.9.5 --------------------------------------- Community plugins: @trumbitta/nx-plugin-unused-deps : 1.12.1 ---------------------------------------
The text was updated successfully, but these errors were encountered:
fix(nextjs): Respect CLI output path when provided
9c9041d
closes: nrwl#17881
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Sorry, something went wrong.
ndcunningham
Successfully merging a pull request may close this issue.
Current Behavior
have next generated project with project.json
run
and you get
dist/sub/*
filesbut no
.next/
dirthe
.next/
dir is generated indist/.next
Expected Behavior
.next
should be colocated with rest of output so you can runnpm run start
from thedist/sub
directoryGitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: