Skip to content

Commit 8f39369

Browse files
committed
fix(deploy): publish dist on Cloudflare Pages
Pages was serving the source index.html (referencing /src/main.tsx) because wrangler.toml lacked pages_build_output_dir, so Pages published the repo root instead of the Vite build output. Set pages_build_output_dir=dist and restore the SPA fallback _redirects.
1 parent a9111cf commit 8f39369

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

wrangler.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
name = "dentime"
2+
pages_build_output_dir = "dist"
23
compatibility_date = "2026-06-08"
3-
4-
[assets]
5-
directory = "./dist"
6-
not_found_handling = "single-page-application"

0 commit comments

Comments
 (0)