Deploy to Cloudflare

Cloudflare is another solid option for hosting a Lediv project yourself.

You do not have to leave Lediv to put a project online. Publish serves it in seconds. This guide is for the other path, hosting the same project somewhere else.

Export from Lediv

Open the Publish panel in the editor and click Download project. That ZIP can then be connected through Git integration, or used to prepare a direct upload workflow.

Choose a Cloudflare Pages method

Git integration

  1. Unzip the exported project.
  2. Push the project to a Git repository.
  3. Create a new Pages project and import that repository.
  4. Set npm run build as the build command and dist as the output directory if they are requested, then deploy.

Direct Upload

Direct Upload is for prebuilt assets. Build locally first, then upload the build output to Cloudflare Pages.

It takes a drag-and-drop of a ZIP file or a folder, and a folder path if you use the Wrangler CLI.

Choose the method before you create the project. A Pages project created with Git integration cannot switch to Direct Upload later, and one created with Direct Upload cannot switch to Git integration.

After deployment

Cloudflare provides a live URL after successful deployment. Custom domain setup can be added from project settings when needed.

For future updates, redeploy from new exports or from repository commits, depending on the chosen flow.


Next steps