docs(sharp-missing-in-production.mdx): update standalone command (#56191)

This commit is contained in:
Imamuzzaki Abu Salam 2023-09-29 23:09:12 +07:00 committed by GitHub
parent 2e36e7d85d
commit d664f9aa9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ pnpm add sharp
bun add sharp
```
Then, build your project with `next build`. Finally, restart the server with either `next start` for production mode or `node server.js` for standalone mode.
Then, build your project with `next build`. Finally, restart the server with either `next start` for production mode or `node .next/standalone/server.js` for standalone mode.
- If `sharp` is already installed but can't be resolved, set the `NEXT_SHARP_PATH` environment variable such as `export NEXT_SHARP_PATH=/tmp/node_modules/sharp`. Then, build your project with `next build`. Finally, restart the server with either `next start` for production mode or `node server.js` for standalone mode.