docs(sharp-missing-in-production.mdx): update standalone command (#56239)
This commit is contained in:
parent
638cc931be
commit
3b8a8f5cfd
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ bun add sharp
|
|||
|
||||
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.
|
||||
- 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 .next/standalone/server.js` for standalone mode.
|
||||
|
||||
> Note: This is not necessary for Vercel deployments, since `sharp` is installed automatically for you.
|
||||
|
||||
|
|
Loading…
Reference in a new issue