Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions server/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ router.all('*', async (req: Request, env: Env, ctx: ExecutionContext) => {
// This will map `/x` to `/x/index.html`, if `/x` does not exist.
// This is conventional for HTTP servers.
mapRequestToAsset: mapRequestToDocs,
pathIsEncoded: true,
cacheControl,
ASSET_NAMESPACE: env.__STATIC_CONTENT,
ASSET_MANIFEST: assetManifest,
Expand All @@ -78,6 +79,7 @@ router.all('*', async (req: Request, env: Env, ctx: ExecutionContext) => {
// Map request to 404.html page.
return new Request(`${new URL(req.url).origin}/404.html`, req);
},
pathIsEncoded: true,
cacheControl,
ASSET_NAMESPACE: env.__STATIC_CONTENT,
ASSET_MANIFEST: assetManifest,
Expand Down