Skip to content

Commit

Permalink
infra: minify functions
Browse files Browse the repository at this point in the history
  • Loading branch information
koenoe committed Jan 16, 2025
1 parent 3686efc commit 18c1c57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions infra/dominantColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export const dominantColor = new sst.aws.Function('DominantColor', {
timeout: '30 seconds',
nodejs: {
install: ['@better-fetch/fetch', 'color', 'sharp'],
minify: true,
},
});
1 change: 1 addition & 0 deletions infra/dynamo/watched.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ watched.subscribe(
},
nodejs: {
install: ['@better-fetch/fetch', 'slugify'],
minify: true,
},
},
{
Expand Down
1 change: 1 addition & 0 deletions infra/scrobbleQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ scrobbleQueue.subscribe({
],
nodejs: {
install: ['@better-fetch/fetch', 'slugify'],
minify: true,
// Note: this should work and allow usage of `import 'server-only';` in the lambda
// but it doesn't seem to work as expected: https://github.com/sst/sst/issues/4514
// esbuild: {
Expand Down

0 comments on commit 18c1c57

Please sign in to comment.