add server test suite

This commit is contained in:
geoffsee
2025-05-31 19:36:13 -04:00
parent 3cf7ceb868
commit 810c562f86
5 changed files with 371 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ export default types
async handleStaticAssets(request: Request, env) {
console.log("handleStaticAssets");
try {
return env.ASSETS.fetch(request);
return await env.ASSETS.fetch(request);
} catch (error) {
console.error("Error serving static asset:", error);
return new Response("Asset not found", { status: 404 });