Unverified Commit a5bc3f2f authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Add note about using Sharp for next/image to deployment docs. (#29067)

I also removed the custom server link here, because I think it's making too strong of a correlation between custom server and Node.js server using `next start`, which aren't the same.
parent 16c3e6f6
...@@ -62,9 +62,7 @@ Next.js will automatically load the latest version of your application in the ba ...@@ -62,9 +62,7 @@ Next.js will automatically load the latest version of your application in the ba
### Node.js Server ### Node.js Server
Next.js can be deployed to any hosting provider that supports Node.js. This is the approach you should take if you’re using a [custom server](/docs/advanced-features/custom-server.md). Next.js can be deployed to any hosting provider that supports Node.js. Make sure your `package.json` has the `"build"` and `"start"` scripts:
Make sure your `package.json` has the `"build"` and `"start"` scripts:
```json ```json
{ {
...@@ -78,6 +76,8 @@ Make sure your `package.json` has the `"build"` and `"start"` scripts: ...@@ -78,6 +76,8 @@ Make sure your `package.json` has the `"build"` and `"start"` scripts:
`next build` builds the production application in the `.next` folder. After building, `next start` starts a Node.js server that supports [hybrid pages](/docs/basic-features/pages.md), serving both statically generated and server-side rendered pages. `next build` builds the production application in the `.next` folder. After building, `next start` starts a Node.js server that supports [hybrid pages](/docs/basic-features/pages.md), serving both statically generated and server-side rendered pages.
If you are using [`next/image`](/docs/basic-features/image-optimization.md), consider adding `sharp` for more performant [Image Optimization](/docs/basic-features/image-optimization.md) in your production environment by running `npm install sharp` in your project directory.
### Docker Image ### Docker Image
<details open> <details open>
......
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