Skip to content

Commit

Permalink
Only apply compress middleware to GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 15, 2024
1 parent c3ae586 commit 4c1afd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-server/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const app = new Hono();
const staticMiddleware = serveStatic({root: `dist/static`});

app.use(authMiddleware);
app.use(compress());
app.get(compress());
app.use(`/favicon.ico`, staticMiddleware);
app.use(`/robots.txt`, staticMiddleware);
app.use(`/client/*`, staticMiddleware);
Expand Down

0 comments on commit 4c1afd8

Please sign in to comment.