The Deno server is running, but it can't connect to the Vite dev server at ${VITE_DEV_SERVER}.
Start the Vite dev server in a separate terminal:
Then refresh this page.
`, { status: 503, headers: { "Content-Type": "text/html" }, } ); } } else { // In production, serve static files from dist/ // For SPA routing: return index.html for non-file requests const response = await serveDir(req, { fsRoot: "./dist", quiet: true, }); // If file not found (404), return index.html for SPA routing if (response.status === 404) { const indexFile = await Deno.readFile("./dist/index.html"); return new Response(indexFile, { headers: { "Content-Type": "text/html" }, }); } return response; } } // Custom routing handler that directly matches routes async function handler(req: Request): Promise