This is a starter template for Learn Next.js.
npm run dev
- Build the app using next's build process
next build
- Export the app to static HTML
next export
npm run build
combines these commands.
If next commands are broken but npm command works, use npx to use the local version of next. It's generally a good practice to use npx when running locally installed Node.js executables, to make sure you're using the version of the tool that is specified in your project, rather than a potentially different globally installed version.
npx next build && npx next export
- Serve the app using a static server
```bash
serve out
- Try looking at the node version in the ci.yml
- Use npx rather than global version of commands (ie. next)
- Delete .next folder and try again
- Delete node_modules and try again
- Delete package-lock.json and try again
- Add "type": "module" to package.json
- Run node scripts/buildRss.js
- Delte "type": "module" from package.json
- Build the site