Skip to content

Commit

Permalink
docs: move example to live with corresponding text (#9176)
Browse files Browse the repository at this point in the history
* docs: move example to live with corresponding text

* Update 40-adapter-node.md
  • Loading branch information
benmccann authored Feb 23, 2023
1 parent 3822d98 commit 8c21383
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions documentation/docs/25-build-and-deploy/40-adapter-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,21 @@ Enables precompressing using gzip and brotli for assets and prerendered pages. I

If you need to change the name of the environment variables used to configure the deployment (for example, to deconflict with environment variables you don't control), you can specify a prefix:

### polyfill

Controls whether your build will load polyfills for missing modules. It defaults to `true`, and should only be disabled when using Node 18.11 or greater.

```js
envPrefix: 'MY_CUSTOM_';
```

```
```sh
MY_CUSTOM_HOST=127.0.0.1 \
MY_CUSTOM_PORT=4000 \
MY_CUSTOM_ORIGIN=https://my.site \
node build
```

### polyfill

Controls whether your build will load polyfills for missing modules. It defaults to `true`, and should only be disabled when using Node 18.11 or greater.

## Custom server

The adapter creates two files in your build directory — `index.js` and `handler.js`. Running `index.js` — e.g. `node build`, if you use the default build directory — will start a server on the configured port.
Expand Down

0 comments on commit 8c21383

Please sign in to comment.