Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/njzjz/preview-cfpages


https://github.com/njzjz/preview-cfpages

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Preview CloudFlare Pages

1. Install the package.

```sh
yarn add -D @njzjz/preview-cfpages
```

2. Set environment `CLOUDFLARE_PAGES_DIST_DIR`.

3. Add scripts to `package.json`.

```json
"postinstall": "preview-cfpages preview",
"cfpages:build": "npm build build",
```