Skip to content

Commit

Permalink
docs: add Cloudflare Pages to deploy options (#8927)
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
Ekwuno and bluwy committed Jul 5, 2022
1 parent 2390422 commit df5688c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/guide/static-deploy.md
Expand Up @@ -187,6 +187,29 @@ The Netlify CLI will share with you a preview URL to inspect. When you are ready
$ ntl deploy --prod
```

## Cloudflare Pages

1. Install [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/get-started/).
2. Authenticate Wrangler with your Cloudflare account using `wrangler login`.
3. Run your build command.
4. Deploy using `npx wrangler pages publish dist`.

```bash
# Install Wrangler CLI
$ npm install -g wrangler

# Login to Cloudflare account from CLI
$ wrangler login

# Run your build command
$ npm run build

# Create new deployment
$ npx wrangler pages publish dist
```

After your assets are uploaded, Wrangler will give you a preview URL to inspect your site. When you log into the Cloudflare Pages dashboard, you will see your new project.

## Google Firebase

1. Make sure you have [firebase-tools](https://www.npmjs.com/package/firebase-tools) installed.
Expand Down

0 comments on commit df5688c

Please sign in to comment.