Skip to content

Conversation

Rot4tion
Copy link
Contributor

What?

Replace Express with native HTTP server in examples/custom-server to match the NextJS official NextJS document.
https://nextjs.org/docs/pages/guides/custom-server

Why?

Speed up and reduce build size

How?

Remove express from package.json and patse the code from NextJS document to examples/custom-server/src/server.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant