This commit is contained in:
2026-02-24 21:59:53 +00:00
parent db2e6834d1
commit a93d3878f5
7 changed files with 8 additions and 26 deletions
+1 -7
View File
@@ -143,13 +143,7 @@ const server = serve({
idleTimeout: 60,
maxRequestBodySize: 1024 * 1024 * 1024 * 50, // 50 GB
routes: {
'/static/*': async (req) => {
const path = new URL(req.url).pathname.slice('/static'.length);
const file = Bun.file(`public${path}`);
if (await file.exists()) return new Response(file);
return new Response(null, { status: 404 });
},
'/api/dev-server-proxy/*': (req, server) => {
'/api/dev-server-proxy/*': (req, server) => {
if (req.headers.get('upgrade') === 'websocket') return upgradeDevServerWs(req, server);
return honoServer.fetch(req, server);
},