Unverified Commit 142b48f3 authored by tang's avatar tang Committed by GitHub

Update 10-custom-server.mdx (#63543)

Add description that custom servers cannot be applied to standalone
output mode
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
Co-authored-by: 's avatarSteven <steven@ceriously.com>
parent 3a1be97f
......@@ -17,6 +17,7 @@ By default, Next.js includes its own server with `next start`. If you have an ex
>
> - Before deciding to use a custom server, please keep in mind that it should only be used when the integrated router of Next.js can't meet your app requirements. A custom server will remove important performance optimizations, like **serverless functions** and **[Automatic Static Optimization](/docs/pages/building-your-application/rendering/automatic-static-optimization).**
> - A custom server **cannot** be deployed on [Vercel](https://vercel.com/solutions/nextjs).
> - Standalone output mode, does not trace custom server files and this mode outputs a separate minimal `server.js` file instead.
Take a look at the following example of a custom server:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment