Dependencies
Cloudflare
Cloudflare Pages is a JAMstack platform for frontend developers to collaborate and deploy websites.
Create an account
Create your first application
To deploy your site to Pages:
- Log in to the Cloudflare dashboard and select your account.
- In Account Home, select Workers & Pages > Create application > Pages > Connect to Git.
- Select the new GitHub repository that you created and, in the Set up builds and deployments section, provide the following information:
Configuration option | Value |
---|---|
Production branch | main |
Build command | npm run build |
Build directory | dist |
Create in git 2 branches: staging and main(master).