Skip to content

Commit 6795b6f

Browse files
committed
build: align wrangler.toml to Worker assets ([assets], drop _redirects)
Deploy command is now 'npx wrangler deploy' (Worker), so wrangler.toml must use [assets] not pages_build_output_dir. SPA via not_found_handling; remove _redirects (Workers rejects /* -> /index.html as an infinite loop).
1 parent 3241799 commit 6795b6f

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "tsc --noEmit && vite build",
1010
"preview": "vite preview",
1111
"test": "vitest run",
12-
"deploy": "pnpm build && wrangler pages deploy dist --project-name=dentime"
12+
"deploy": "pnpm build && wrangler deploy"
1313
},
1414
"dependencies": {
1515
"@tanstack/react-query": "^5.62.0",

public/_redirects

Lines changed: 0 additions & 1 deletion
This file was deleted.

wrangler.toml

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

0 commit comments

Comments
 (0)