Skip to content

Commit 5d81d22

Browse files
committed
use sourcemap
1 parent 48f6b7c commit 5d81d22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cloudformation/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ Resources:
267267
LinkryKvArn: !GetAtt LinkryRecordsCloudfrontStore.Arn
268268
AWS_CRT_NODEJS_BINARY_RELATIVE_PATH: node_modules/aws-crt/dist/bin/linux-arm64-glibc/aws-crt-nodejs.node
269269
ORIGIN_VERIFY_KEY: !Join ['-', ['secret', !Select [4, !Split ['-', !Select [2, !Split ['/', !Ref AWS::StackId]]]]]]
270+
NODE_OPTIONS: --enable-source-maps
270271
VpcConfig:
271272
Ipv6AllowedForDualStack: !If [ShouldAttachVpc, True, !Ref AWS::NoValue]
272273
SecurityGroupIds:
@@ -309,6 +310,7 @@ Resources:
309310
Variables:
310311
RunEnvironment: !Ref RunEnvironment
311312
EntraRoleArn: !GetAtt AppSecurityRoles.Outputs.EntraFunctionRoleArn
313+
NODE_OPTIONS: --enable-source-maps
312314
VpcConfig:
313315
Ipv6AllowedForDualStack: !If [ShouldAttachVpc, True, !Ref AWS::NoValue]
314316
SecurityGroupIds:

src/api/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const commonParams = {
1414
".json": "file",
1515
}, // File loaders
1616
target: "es2022", // Target ES2022
17-
sourcemap: false,
17+
sourcemap: true,
1818
platform: "node",
1919
external: ["@aws-sdk/*", ...packagesToTransfer],
2020
alias: {

0 commit comments

Comments
 (0)