preview-cfpages

Stars
1

Preview CloudFlare Pages

  1. Install the package.
yarn add -D @njzjz/preview-cfpages
  1. Set environment CLOUDFLARE_PAGES_DIST_DIR.

  2. Add scripts to package.json.

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