Skip to content

styfle/next-static-export-example

 
 

Repository files navigation

Next.js Static Export

  • Component level data fetching
  • i18n routes support (no runtime detection)
  • Dynamic routes (/post/[id])
  • SPA routes (/spa-post/[id])
  • Image optimization (uses Cloudinary)
  • Route Handlers

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

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.7%
  • JavaScript 12.0%
  • CSS 1.3%