https://github.com/simonaco/next-with-static-export
https://github.com/simonaco/next-with-static-export
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonaco/next-with-static-export
- Owner: simonaco
- Created: 2022-02-28T09:54:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T16:36:03.000Z (over 4 years ago)
- Last Synced: 2025-08-23T08:25:23.834Z (10 months ago)
- Language: JavaScript
- Homepage: next-with-static-export.vercel.app
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Static export example
This example show how to export to static HTML files your Next.js application fetching data from an API to generate a dynamic list of pages.
When trying to run `npm start` it will build and export your pages into the `out` folder and serve them on `localhost:5000`.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-static-export)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-static-export with-static-export-app
# or
yarn create next-app --example with-static-export with-static-export-app
```