Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Jan 25, 2025
1 parent 559e1ab commit 9f26381
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cloudformation/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,20 @@ Resources:
Format: esm
Minify: true
OutExtension:
- .js=.js
Target: "node22"
- .js=.mjs
Target: "es2022"
Sourcemap: false
EntryPoints:
- api/lambda.js
External:
- aws-sdk
Banner:
- js=import path from 'path';
import { fileURLToPath } from 'url';
import { createRequire as topLevelCreateRequire } from 'module';
const require = topLevelCreateRequire(import.meta.url);
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
Properties:
Architectures: [arm64]
CodeUri: ../dist
Expand Down

0 comments on commit 9f26381

Please sign in to comment.