denoland / deno-lambda

A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
868 stars 42 forks source link

Support `index.mjs` and `index.js` entrypoints #282

Closed littledivy closed 2 months ago

littledivy commented 5 months ago

Currently index.handler only works with index.ts. index.mjs support will make this layer work OOTB with open-next build outputs

igorzi commented 5 months ago

This should already work by setting Lambda HANDLER_EXT env variable to mjs.

lucacasonato commented 2 months ago

This repo is now archived because we are discontinuing the AWS Lambda layer for Deno. Instead we recommend you use a Docker image on AWS Lambda to run Deno. You can find a full guide in the docs.