Cloudflare Pages Frontend
Click
Compute (Workers)->Workers & Pages->Create
Select
Pages, chooseUse direct upload
Enter the address of the deployed worker. The address should not include a trailing
/. Click generate, and if successful, a download button will appear. You will get a zip package.- The worker domain here is the backend API domain. For example, if I deployed at
https://temp-email-api.awsl.uk, then fill inhttps://temp-email-api.awsl.uk - If your domain is
https://temp-email-api.xxx.workers.dev, then fill inhttps://temp-email-api.xxx.workers.dev
Note
The
worker.devdomain is not accessible in China, please use a custom domain.NOTE
You can also deploy manually. Download the zip from here: frontend.zip
Modify the index-xxx.js file in the archive, where xx is a random string
Search for
https://temp-email-api.xxx.xxxand replace it with your worker's domain, then deploy the new zip file- The worker domain here is the backend API domain. For example, if I deployed at
Select
Pages, clickCreate Pages, modify the name, upload the downloaded zip package, and then clickDeploy
Open the
Pagesyou just deployed, clickCustom Domain. Here you can add your own domain, or you can use the automatically generated*.pages.devdomain. If you can open the domain, the deployment is successful.