Skip to content

Commit

Permalink
Add docs about deploying with a custom tsconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandfrank committed Nov 13, 2024
1 parent 438e204 commit 4ae160b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,23 @@ Alternatively, you can run the following commands separately to customize the de
```bash
yarn build
yarn cdk deploy --require-approval never --all --app="yarn ts-node stack/index.ts"
# or with pnpm
pnpm build
pnpm cdk deploy --require-approval never --all --app="pnpm ts-node stack/index.ts"
```

For example, to run the commands with `pnpm`, you can run the following commands:
#### Deploy with a custom TypeScript configuration
Depending on your Nuxt app's TypeScript configuration and the setup of your stack, you might need a different TypeScript configuration for the CDK stack.
You can do so by creating a `tsconfig.cdk.json` file in the root directory of your project and adjust the deployment command accordingly:
```bash
```bash
yarn build
yarn cdk deploy --require-approval never --all --app="yarn ts-node --project=tsconfig.cdk.json stack/index.ts"
# or with pnpm
pnpm build
pnpm cdk deploy --require-approval never --all --app="pnpm ts-node stack/index.ts"
pnpm cdk deploy --require-approval never --all --app="pnpm ts-node --project=tsconfig.cdk.json stack/index.ts"
```
## Destroy the Stack
Expand Down

0 comments on commit 4ae160b

Please sign in to comment.