Skip to content

Cloudflare Pages Frontend

  1. Click Workers & Pages -> Overview -> Create Application

    worker1

  2. Choose Pages, then select Create using direct upload

    page1

  3. Enter the address of the deployed worker, ensuring the address does not end with /. Click generate; if successful, a download button will appear and you'll receive a zip file.

    • Here, the worker domain should match the backend api domain. For example, if my deployment is at https://cyiapi.lmyself.ggff.net, enter https://cyiapi.lmyself.ggff.net.
    • If your domain is https://cyiapi.xxx.workers.dev, then input https://cyiapi.xxx.workers.dev.

    NOTE

    You can also deploy manually. Download the zip from frontend.zip.

    Modify the index-xxx.js file inside the zip, where xx is a random string.

    Search for https://vimg.100769.xyz and replace it with your worker address or bound domain, then deploy the new zip file.

  4. Click Upload assets, modify the name, then click Create project. Upload the downloaded zip file and click Deploy.

    page2

  5. Open the just-deployed Pages, click Custom Domain, where you can add your own domain or use the auto-generated *.pages.dev domain. If the domain opens successfully, the deployment is successful.

    page3

Released under the MIT License