Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.54 KB

File metadata and controls

42 lines (27 loc) · 1.54 KB
title Cloudflare
layout guides
order 2
tocHeading 2

Cloudflare

Cloudflare is a a great option for hosting your Greenwood application for both static and serverless hosting.

You can see a complete hybrid project example in our demonstration repo.

Pages

For static hosting with Cloudflare Pages, the easiest option is to follow their steps for integration with your git hosting provider. With this, Cloudflare will automatically build and deploy your project when you push changes to your repo, as well as creating deploy previews for PRs.

As part of the wizard, make sure you set a build command for your project, e.g. npm run build

You'll also want to add a wrangler.toml file to the root of your project

# https://developers.cloudflare.com/pages/functions/wrangler-configuration/
name = "<your-project-name>"
pages_build_output_dir = "./public"
compatibility_date = "2023-10-12"

That's it! That's all you should need to get started deploying Greenwood to Cloudflare Pages. ☁️

Workers

Coming soon!

Although there is no adapter plugin (yet) for this it is a priority on our roadmap.