Skip to content

PaulTreanor/paultreanor.com

Repository files navigation

This is a starter template for Learn Next.js.

Run locally

npm run dev 

Build and export

  • 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

Breaking?

  • 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

Build RSS feed...

  1. Add "type": "module" to package.json
  2. Run node scripts/buildRss.js
  3. Delte "type": "module" from package.json
  4. Build the site

About

My personal website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published