Skip to content

Commit

Permalink
šŸ› fix(image lambda): fix of image lambda hash, incorrectly exported vā€¦
Browse files Browse the repository at this point in the history
ā€¦alue
  • Loading branch information
sladg committed Dec 23, 2022
1 parent 20f13a0 commit f875703
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
11 changes: 5 additions & 6 deletions lib/cdk/app.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { App } from 'aws-cdk-lib'
import path from 'path'
import { NextStandaloneStack } from './stack'
import imaginex from '@sladg/imaginex-lambda'
import imaginexPackage from '@sladg/imaginex-lambda/package.json'
import { handler, name, optimizerCodePath, optimizerLayerPath, version } from '@sladg/imaginex-lambda'

const app = new App()

Expand All @@ -20,10 +19,10 @@ new NextStandaloneStack(app, process.env.STACK_NAME, {
customServerHandler: 'index.handler',

// Image lambda specific config
imageHandlerZipPath: imaginex.optimizerCodePath,
imageLayerZipPath: imaginex.optimizerLayerPath,
imageLambdaHash: imaginexPackage.version,
customImageHandler: imaginex.handler,
imageHandlerZipPath: optimizerCodePath,
imageLayerZipPath: optimizerLayerPath,
imageLambdaHash: `${name}_${version}`,
customImageHandler: handler,

// Lambda & AWS config
apigwServerPath: '/_server',
Expand Down
19 changes: 9 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"release": "npx --package @sladg/release-utils utils shipit --gitUser @sladg --gitEmail jan@ssoukup.com --changelog"
},
"dependencies": {
"@sladg/imaginex-lambda": "^0.2.4",
"@sladg/imaginex-lambda": "^0.2.6",
"@types/archiver": "^5.3.1",
"@types/node": "^18.7.16"
},
Expand Down

0 comments on commit f875703

Please sign in to comment.