https://github.com/leerob/next-static-export-example
https://github.com/leerob/next-static-export-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/leerob/next-static-export-example
- Owner: leerob
- Created: 2023-03-18T20:53:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T13:58:58.000Z (over 1 year ago)
- Last Synced: 2025-04-30T17:08:33.507Z (about 1 month ago)
- Language: TypeScript
- Size: 43 KB
- Stars: 60
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`:
```bash
pnpm install -g serve
serve out
```