rsnext/examples/with-static-export/README.md
NorbertLuszkiewicz c03d4931de
Simplify example usage instructions (#16678)
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-08-29 22:22:02 -04:00

15 lines
697 B
Markdown

# 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`.
## 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
```