Skip to content

Commit

Permalink
Revert compress flag
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Feb 1, 2023
1 parent 04bcf32 commit b336f1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/adapters/server-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ console.log({ nextDir });

// Create a NextServer
const requestHandler = new NextServer.default({
conf: config,
// Next.js compression should be disabled because of a bug in the bundled
// `compression` package — https://github.com/vercel/next.js/issues/11669
conf: { ...config, compress: false },
customServer: false,
dev: false,
dir: __dirname,
Expand Down Expand Up @@ -103,4 +105,4 @@ function loadHtmlPages() {
return Object.entries(JSON.parse(json))
.filter(([_, value]) => (value as string).endsWith(".html"))
.map(([key]) => key);
}
}

0 comments on commit b336f1c

Please sign in to comment.