Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions deploy/cloudflare.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

The dashboard displays a Cloudflare Worker script with your subdomain, domain, and base path filled in. Use this script in the [Configure routing](#configure-routing) step instead of manually replacing the placeholder values in the example script.

## Set up a Worker

Check warning on line 24 in deploy/cloudflare.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

deploy/cloudflare.mdx#L24

'Set up a Worker' should use sentence-style capitalization.

Create a Cloudflare Worker by following the [Cloudflare Workers getting started guide](https://developers.cloudflare.com/workers/get-started/dashboard/), if you have not already.

Expand Down Expand Up @@ -94,7 +94,7 @@
return await fetch(proxyRequest);
}
} catch (error) {
// If no action found, play the regular request
// If no action found, serve the regular request
return await fetch(request);
}
}
Expand All @@ -103,14 +103,14 @@
<Warning>
In addition to your subpath, your Worker must proxy `/mintlify-assets/*`, which serves the CSS, JavaScript, and favicons for your documentation, and `/_mintlify/*`, which handles API playground requests.

If you route traffic to your Worker with route patterns instead of a custom domain, add routes for `yoursite.com/mintlify-assets/*` and `yoursite.com/_mintlify/*` alongside your subpath route. These paths must originate from the root of your domain, not your subpath.
If you route traffic to your Worker with route patterns instead of a custom domain, add routes for `yoursite.com/mintlify-assets/*` and `yoursite.com/_mintlify/*` alongside your subpath route. These paths must originate from the root of your domain, not your subpath.
</Warning>

Click **Deploy** and wait for the changes to propagate.

<Propagating />

### Test your Worker

Check warning on line 113 in deploy/cloudflare.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

deploy/cloudflare.mdx#L113

'Test your Worker' should use sentence-style capitalization.

After your code deploys, test your Worker to ensure it routes to your Mintlify docs.

Expand Down
2 changes: 1 addition & 1 deletion es/deploy/cloudflare.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function handleRequest(request) {
return await fetch(proxyRequest);
}
} catch (error) {
// If no action found, play the regular request
// If no action found, serve the regular request
return await fetch(request);
}
}
Expand Down