Skip to content

Commit e0d0e56

Browse files
committed
fix: embed the jsonschema files
1 parent 1ca3494 commit e0d0e56

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/stacks/platform-stack.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ export class TrustedLearningContextServiceStack extends Stack {
5252
handler: "handler",
5353
timeout: Duration.seconds(60),
5454
memorySize: 1024,
55+
bundling: {
56+
commandHooks: {
57+
beforeBundling() {
58+
return [];
59+
},
60+
beforeInstall() {
61+
return [];
62+
},
63+
afterBundling(inputDir: string, outputDir: string) {
64+
return [`mkdir -p "${outputDir}/schemas" && cp -R "${inputDir}/schemas/." "${outputDir}/schemas/"`];
65+
}
66+
}
67+
},
5568
environment: {
5669
CREDENTIAL_TABLE_NAME: storage.credentialTable.tableName,
5770
EVENT_TABLE_NAME: storage.eventTable.tableName,

0 commit comments

Comments
 (0)