Deploy a Brunch site
To begin, install Brunch:
$ npm install -g brunch
Create a Brunch project
$ brunch new proj -s es6
Before you continue
Create a GitHub repository
In your terminal,
cd into your new Brunch project directory and run:
$ git init$ git add -A$ git commit -m "<YOUR_COMMIT_MESSAGE>"$ git remote add origin <YOUR_NEW_GITHUB_REPOSITORY_URL>$ git push -u origin main
You have successfully created a GitHub repository and pushed your Brunch project to that repository.
Deploy with Cloudflare Pages
Deploy your site to Pages:
- Log in to the .
- In Account Home, select Pages > Create a project.
- Select the new GitHub repository that you created and, in the Set up builds and deployments section, select Brunch as your Framework preset. Your selection will provide the following information.
After deploying your site, you will receive a unique subdomain for your project on
Every time you commit new code to your Brunch site, Cloudflare Pages will automatically rebuild your project and deploy it. You will also get access to on new pull requests and be able to preview how changes look to your site before deploying them to production.