We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91c1ba commit 7db0922Copy full SHA for 7db0922
source/constructs/lib/back-end/back-end-construct.ts
@@ -110,6 +110,17 @@ export class BackEnd extends Construct {
110
bundling: {
111
externalModules: ["sharp"],
112
nodeModules: ["sharp"],
113
+ commandHooks: {
114
+ beforeBundling(inputDir: string, outputDir: string): string[] {
115
+ return [];
116
+ },
117
+ beforeInstall(inputDir: string, outputDir: string): string[] {
118
119
120
+ afterBundling(inputDir: string, outputDir: string): string[] {
121
+ return [`cd ${outputDir}`, "rm -rf node_modules/sharp && npm install --arch=x64 --platform=linux sharp"];
122
123
124
},
125
});
126
0 commit comments