Open tatethurston opened 1 year ago
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
.