Skip to content

Commit

Permalink
fix: use __dirname to find handler
Browse files Browse the repository at this point in the history
  • Loading branch information
berenddeboer committed Sep 16, 2022
1 parent b01732f commit dbf1d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Provider extends Construct {
): lambda.NodejsFunction {
const fn = new lambda.NodejsFunction(scope, id, {
vpc: props.vpc,
entry: "./src/handler.ts",
entry: `${__dirname}/handler.ts`,
runtime: Runtime.NODEJS_14_X,
timeout: Duration.seconds(300),
bundling: {
Expand Down

0 comments on commit dbf1d18

Please sign in to comment.