Unverified Commit d664f9aa authored by Imamuzzaki Abu Salam's avatar Imamuzzaki Abu Salam Committed by GitHub

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

parent 2e36e7d8
...@@ -34,7 +34,7 @@ pnpm add sharp ...@@ -34,7 +34,7 @@ pnpm add sharp
bun 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. - 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.
......
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