leerob / next-static-export-example

53 stars 7 forks source link

Next.js Static Export

Static Export

Running pnpm build will export the site to the out directory. Then, you can deploy the out directory to any static hosting provider.

You can also run it locally using a tool like serve:

pnpm install -g serve
serve out