Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export function previewServerPlugin(): Plugin {
let serverBuild: any = null

server.middlewares.use(async (req, res, next) => {
res.setHeader('content-encoding', 'identity')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this only required for solid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this only required for solid?

i don't think so. its for all streaming frameworks

try {
// Lazy load server build on first request
if (!serverBuild) {
Expand Down
Loading