Deploying
Cloudflare Pages#
A guide to deploy a Guider project to Cloudflare Pages.
The guide#
Follow the steps below to deploy a Guider project to Cloudflare Pages.
Make a new Application#
Go to the Cloudflare dashboard on under "Workers & Pages" click "Create application".
Select your repository#
On the "Create application" page, select the "Pages" tab.
Choose a repository by pressing "Connect to Git" and then selecting it from the repository list.
Configure your project#
Configure the following fields:
- Project name: Choose a fitting name.
- Production branch: Select your release branch.
- Framework preset: Select "Next.js (Static HTML Export)"
- Build command: Set to
npm run build
(or your favourite package manager) - Root directory (advanced): If you have your project in a subdirectory, set it here. otherwise leave empty.
Deploy#
Click the Save and Deploy
button and wait until your site has been deployed.
Cloudflare has linked this deploy with your branch, meaning that once new changes are pushed. Cloudflare will automatically update your site.