Output file tracing - server.js compression false #33696
Labels
bug
Issue was opened via the bug report template.
Output (export/standalone)
Related to the the output option in `next.config.js`.
Run
next info
(available from version 12.0.8 and up)What version of Next.js are you using?
12.0.8
What version of Node.js are you using?
16.11.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Docker on Azure
Describe the Bug
We are currently using the automatic copying of traced files from the output standalone (https://nextjs.org/docs/advanced-features/output-file-tracing#automatically-copying-traced-files-experimental).
This is working great so far.
We are using the generated
server.js
to serve our application.However, we noticed our resources were not being compressed automatically anymore, which was the case when we were still using
next start
before.When I have a look in the
server.js
file which is generated, I noticed that thecompress
configuration option wasfalse
by default.Is there a way to overwrite this?
Wouldn't it be more logical to put
compress
ontrue
by default?Server.js contents:
Expected Behavior
I would like an option to overwrite the
compress
configuration, or to havecompress
ontrue
by defaultTo Reproduce
Put this in
next.config.js
:Execute
npm run build
, and check theserver.js
file in.next/standalone
The text was updated successfully, but these errors were encountered: