Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
wip: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 7, 2024
1 parent 89db252 commit 6a1d640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/src/components/aws/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ export class Function extends Component implements Link.Linkable {
// Validate handler file exists
const newHandlerFileExt = [".js", ".mjs", ".cjs"].find((ext) =>
fs.existsSync(
path.join(bundle, handlerDir, oldHandlerFileName + ext),
path.join(bundle!, handlerDir, oldHandlerFileName + ext),
),
);
if (!newHandlerFileExt)
Expand Down

0 comments on commit 6a1d640

Please sign in to comment.