# Cloudflare Pages Frontend 1. Click `Compute (Workers)` -> `Workers & Pages` -> `Create` ![create pages](/ui_install/worker_home.png) 2. Select `Pages`, choose `Use direct upload` ![pages](/ui_install/pages.png) 3. 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 in `https://temp-email-api.awsl.uk` - If your domain is `https://temp-email-api.xxx.workers.dev`, then fill in `https://temp-email-api.xxx.workers.dev` > [!warning] Note > The `worker.dev` domain is not accessible in China, please use a custom domain.
{{ tip }}
> [!NOTE] > You can also deploy manually. Download the zip from here: [frontend.zip](https://github.com/dreamhunter2333/cloudflare_temp_email/releases/latest/download/frontend.zip) > > Modify the index-xxx.js file in the archive, where xx is a random string > > Search for `https://temp-email-api.xxx.xxx` and replace it with your worker's domain, then deploy the new zip file 4. Select `Pages`, click `Create Pages`, modify the name, upload the downloaded zip package > [!warning] Important: SPA Mode > This project is a Single-Page Application (SPA). **You must expand the advanced options during deployment and set "Not Found handling" to `Single-page application (SPA)`**. > Otherwise, refreshing the page or directly accessing sub-paths like `/admin` will return a 404 error. Then click `Deploy` ![pages1](/ui_install/pages-1.png) 5. Open the `Pages` you just deployed, click `Custom Domain`. Here you can add your own domain, or you can use the automatically generated `*.pages.dev` domain. If you can open the domain, the deployment is successful. ![pages domain](/ui_install/pages-domain.png)