Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobyab/cloudflare
☁️ Experimenting with Cloudflare pages!
https://github.com/tobyab/cloudflare
Last synced: 5 days ago
JSON representation
☁️ Experimenting with Cloudflare pages!
- Host: GitHub
- URL: https://github.com/tobyab/cloudflare
- Owner: tobyab
- Created: 2022-10-01T08:14:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T16:33:32.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T04:52:26.274Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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`.
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-static-export)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/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), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:
```bash
npx create-next-app --example with-static-export with-static-export-app
``````bash
yarn create next-app --example with-static-export with-static-export-app
``````bash
pnpm create next-app --example with-static-export with-static-export-app
```