An open API service indexing awesome lists of open source software.

https://github.com/ncrmro/nextjs-statically-exported-cloudflare-worker

A statically exported NextJS Site deployed to a Cloudflare worker.
https://github.com/ncrmro/nextjs-statically-exported-cloudflare-worker

cloudflare nextjs nodejs react reactjs serverless service-worker static-site

Last synced: 2 months ago
JSON representation

A statically exported NextJS Site deployed to a Cloudflare worker.

Awesome Lists containing this project

README

          

# NextJS Statically Exported Cloudflare Worker

- [Nextjs docs](https://nextjs.org/docs)
- [Offical Cloudflare Workers Docs](https://developers.cloudflare.com/workers/learning/getting-started)

```bash
yarn global add @cloudflare/wrangler
```

```bash
wrangler login
```

You will also need to set your `account` and `zone` ids in the wrangler.toml.

## Building & Publishing

```bash
yarn build
```

```bash
yarn pub
```