Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 86b5f48

Browse files
committed
🐛 fix(cdk): fixed missmatch in naming of output files
1 parent 337dfc4 commit 86b5f48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Frontend environment variables are automatically resolved during build time! You
8585

8686
### Via CDK
8787

88-
See `NextStandaloneStack` construct in `lib/cdk-app.ts`.
88+
See `NextStandaloneStack` construct in `lib/cdk/app.ts`.
8989
Or just use `utils deploy` command so you don't have to manage CDK yourself. See CLI help command for all congiruation, notably, it's possible to set Timeout and Memory for lambda from CLI. It is advised to always use custom `--stackName` in `deploy` command as it will affect names of all resources and will help you distinguish between different environments/applications.
9090

9191
## Packaging

Diff for: lib/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ program
4949
.command('deploy')
5050
.description('Deploy Next application via CDK')
5151
.option('--stackName <name>', 'Name of the stack to be deployed.', 'StandaloneNextjsStack-Temporary')
52-
.option('--appPath <path>', 'Absolute path to app.', path.resolve(__dirname, '../dist/cdk-app.js'))
52+
.option('--appPath <path>', 'Absolute path to app.', path.resolve(__dirname, '../dist/cdk/app.js'))
5353
.option('--bootstrap', 'Bootstrap CDK stack.', false)
5454
.option('--lambdaTimeout <sec>', 'Set timeout for lambda function handling server requirests.', Number, 15)
5555
.option('--lambdaMemory <mb>', 'Set memory for lambda function handling server requirests.', Number, 512)

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"prebuild": "rm -rf dist",
2121
"build": "npm run build:cli && npm run build:main && npm run build:cdk && npm run build:handler",
22-
"build:cdk": "tsup lib/cdk/app.ts --dts lib/cdk/app.ts",
22+
"build:cdk": "tsup lib/cdk/app.ts --out-dir dist/cdk",
2323
"build:cli": "tsup lib/cli.ts",
2424
"build:main": "tsup lib/index.ts --dts lib/index.ts",
2525
"build:handler": "tsup lib/server-handler/index.ts --out-dir dist/server-handler && bestzip dist/server-handler.zip dist/server-handler && rm -r dist/server-handler",

0 commit comments

Comments
 (0)