Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Show example with Deploy to CloudFlare Worker #642

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,24 @@ pages:

Visit the [GitLab Pages](https://gitlab.com/help/user/project/pages/getting_started_part_one.md) to find out about advanced configurations.

## CloudFlare Workers

1. To start, install [CloudFlare Wrangler CLI](https://developers.cloudflare.com/workers/cli-wrangler)

2. Create `wrangler.toml` at the root of your project with the following content:

```
name = "status"
type = "webpack"
account_id = "YOUR CLOUDFLARE ACCOUNT ID"
workers_dev = true

[site]
bucket = "dist"
```

3. Run `wrangler publish`

### References

- [Gatsby: Deploying to GitLab Pages](https://www.gatsbyjs.org/docs/deploying-to-gitlab-pages/)
Expand Down