-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
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
Allow nextjs-routes cli configuration via nextjs-routes.config.js file #136
Comments
Alternatively, read next.config.js to derive the configuration. This seems preferable, but is more difficult because of the configuration under the webpack key. We could add a custom webpack key or use globals to pass configuration. |
i wouldn't. just make them cli args. |
Yeah, also happy with a cli args approach. |
@tatethurston Did the CLI get removed in the latest npm published package? I cannot find any concept of a CLI or executable in there but this issue references one existing. EDIT NVM I am blind. |
Published 2.2.4-rc.1 which reads in next.config.js. Support for cwd and outDir to follow in a subsequent rc. |
nextjs-routes can be invoked via cli:
npx nextjs-routes
. Presently, no configuration options are passed to the cli execution.nextjs-routes.config.js
if present.writeNextjsRoutes
insrc/cli
.The text was updated successfully, but these errors were encountered: