Skip to content

Commit

Permalink
docs(sharp-missing-in-production.mdx): update standalone command (#56239
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ImBIOS committed Sep 30, 2023
1 parent 638cc93 commit 3b8a8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/sharp-missing-in-production.mdx
Expand Up @@ -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.
Expand Down

0 comments on commit 3b8a8f5

Please sign in to comment.