Skip to content

Commit 0a68706

Browse files
committed
fix(docs wrangler assets): set run_worker_first to true
1 parent 9664da9 commit 0a68706

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/docs/server/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Env {
1010
const runtime = withRuntime<Env>({
1111
fetch: async (req, env) => {
1212
const url = new URL(req.url);
13-
if (url.pathname === "/" || url.pathname === "") {
13+
if (url.pathname === "/" || url.pathname === "" || url.pathname === "/en") {
1414
return Response.redirect(new URL("/en/introduction", req.url), 302);
1515
}
1616

apps/docs/wrangler.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ custom_domain = true
1212
[assets]
1313
directory = "./dist/client"
1414
binding = "ASSETS"
15+
run_worker_first = true
1516

1617
[deco]
1718
workspace = "deco.cx"

0 commit comments

Comments
 (0)