diff --git a/src/_posts/languages/nodejs/2000-01-01-nextjs-standalone.md b/src/_posts/languages/nodejs/2000-01-01-nextjs-standalone.md index 57fc09e0a..06b90f4ab 100644 --- a/src/_posts/languages/nodejs/2000-01-01-nextjs-standalone.md +++ b/src/_posts/languages/nodejs/2000-01-01-nextjs-standalone.md @@ -37,12 +37,16 @@ Start the server using Node.js. ```json { "scripts": { - "start": "node .next/standalone/server.js" + "start": "node .next/standalone/server.js --hostname 0.0.0.0" // others scripts } } ``` +{% warning %} + Ensure that the `--hostname` is set to 0.0.0.0 to avoid the [boot timeout issue]({% post_url languages/nodejs/2000-01-01-start %}#nextjs). +{% endwarning %} + {% note %} Reason: after build node_modules will have been removed, so the original command `next start` will error: `"sh: 1: next: not found"` {% endnote %}