Skip to content

Commit

Permalink
Use compress middleware in dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 15, 2024
1 parent 10813d6 commit 33a8698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev-server/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {serve} from '@hono/node-server';
import {serveStatic} from '@hono/node-server/serve-static';
import {Hono} from 'hono';
import {compress} from 'hono/compress';
import {authMiddleware} from './auth-middleware.js';
import './stub-awslambda.js';

Expand All @@ -10,6 +11,7 @@ const {app: handlerApp} = handlerModule as {app: Hono};
const app = new Hono();

app.use(authMiddleware);
app.use(compress());
app.use(`/client/*`, serveStatic({root: `dist/static`}));
app.route(`/`, handlerApp);

Expand Down

0 comments on commit 33a8698

Please sign in to comment.