Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the http2 example to work #10470

Merged
merged 9 commits into from Feb 10, 2020
8 changes: 7 additions & 1 deletion examples/with-http2/server.js
Expand Up @@ -6,7 +6,13 @@ const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'

// Init the Next app:
const app = next({ dev })
const app = next({
dev,
conf: {
// this needs to be set false unitl to a bug in the compression npm module ets fixed.
compress: false,
Copy link
Member

Choose a reason for hiding this comment

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

This should be set in next.config.js, not here!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes of course!! moved it to next.config.js

},
})

// Create the secure HTTPS server:
// Don't forget to create the keys for your development
Expand Down