added aws lambda adapter + improvements to handle concurrency

This commit is contained in:
dswbx
2025-03-03 15:42:42 +01:00
parent 1a72b9e84b
commit 675a39ad5c
22 changed files with 488 additions and 42 deletions

View File

@@ -0,0 +1,14 @@
import { serveLambda } from "bknd/adapter/aws";
export const handler = serveLambda({
// to get local assets, run `npx bknd copy-assets`
// this is automatically done in `deploy.sh`
assets: {
mode: "local",
root: "./static",
},
connection: {
url: process.env.DB_URL,
authToken: process.env.DB_TOKEN,
},
});