Skip to content

Commit

Permalink
docs: Update deployment example for configuration (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianCodes authored Mar 3, 2023
1 parent 2b92747 commit 9f08b0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/content/2.deploy/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ When deploying to the production using CI/CD, Nitro tries to automatically detec

## Changing the deployment preset

If you need to build Nitro against a specific provider, you can override it using an environment variable or `nitro.config`. Using environment variable is recommended for deployments depending on CI/CD.
If you need to build Nitro against a specific provider, you can override it using an environment variable or `nitro.config.ts`. Using environment variable is recommended for deployments depending on CI/CD.

**Example:** Using `NITRO_PRESET`
```bash
NITRO_PRESET=aws-lambda nitro build
```

**Example:** Using [nitro.config](/config/)
**Example:** Using [nitro.config.ts](/config/)

```ts
import { defineNitroConfig } from "nitropack";

export default defineNitroConfig({
preset: 'node-server'
})
Expand Down

0 comments on commit 9f08b0e

Please sign in to comment.