mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-04 23:17:34 +08:00
docs: add SPA settings screenshot (#975)
This commit is contained in:
@@ -12,6 +12,8 @@ Refer to [Deploy Worker](/en/guide/cli/worker#deploy-worker-with-frontend-option
|
||||
> [!warning] Important: SPA Mode
|
||||
> This project is a Single-Page Application (SPA). If you deploy manually via the Cloudflare dashboard, **you must set "Not Found handling" to `Single-page application (SPA)` in the advanced options**, otherwise refreshing the page or directly accessing sub-paths like `/admin` will return a 404 error.
|
||||
> When deploying via CLI (`wrangler pages deploy`), this is handled automatically and no extra configuration is needed.
|
||||
>
|
||||
> 
|
||||
|
||||
The first deployment will prompt you to create a project. For the `production` branch, enter `production`.
|
||||
|
||||
|
||||
@@ -139,6 +139,8 @@ const generate = async () => {
|
||||
> [!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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user