Skip to content

Conversation

@Rot4tion
Copy link
Contributor

@Rot4tion Rot4tion commented Sep 16, 2025

What?

Replace Express with native HTTP server in examples/custom-server to match the 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

1 participant