
Js Īfter running npm run build, deploy using the command firebase deploy.įirst install surge, if you haven’t already. firebaserc at the root of your project with the following content: Make sure you have firebase-tools installed.Ĭreate firebase.json and. Learn more about Cloudflare Pages Git Integration.

You can also add custom domains and handle custom build settings on Pages. All changes to the Production Branch (commonly “main”) will result in a Production Deployment. Your application is deployed! (e.g After your project has been imported and deployed, all subsequent pushes to branches will generate Preview Deployments unless specified not to in your branch build controls.Select the corresponding framework preset in the build setting depending on the Vite framework you have selected.Select the git project you want to deploy and click Begin setup.Select Create a new Project and the Connect Git option.Log in to the Cloudflare dashboard and select your account in Account Home > Pages.Push your code to your git repository (GitHub, GitLab).When you log into the Cloudflare Pages dashboard, you will see your new project.

Bash # Install Wrangler CLI $ npm install -g wrangler # Login to Cloudflare account from CLI $ wrangler login # Run your build command $ npm run build # Create new deployment $ npx wrangler pages publish distĪfter your assets are uploaded, Wrangler will give you a preview URL to inspect your site.
