Skip to content

Commit 25c3497

Browse files
docs: clarify building of adapter-node (#8881)
* Update 40-adapter-node.md It wasn't clear to me that `npm run build` was needed * Update 40-adapter-node.md --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 66ae0a2 commit 25c3497

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/docs/25-build-and-deploy/40-adapter-node.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default {
2222

2323
## Deploying
2424

25-
You will need the output directory (`build` by default), the project's `package.json`, and the production dependencies in `node_modules` to run the application. Production dependencies can be generated with `npm ci --prod` (you can skip this step if your app doesn't have any dependencies). You can then start your app with this command:
25+
First, build your app with `npm run build`. This will create the production server in the output directory specified in the adapter options, defaulting to `build`.
26+
27+
You will need the output directory, the project's `package.json`, and the production dependencies in `node_modules` to run the application. Production dependencies can be generated with `npm ci --prod` (you can skip this step if your app doesn't have any dependencies). You can then start your app with this command:
2628

2729
```bash
2830
node build
@@ -191,4 +193,4 @@ function shutdownGracefully() {
191193

192194
process.on('SIGINT', shutdownGracefully);
193195
process.on('SIGTERM', shutdownGracefully);
194-
```
196+
```

0 commit comments

Comments
 (0)