mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
added aws lambda adapter + improvements to handle concurrency
This commit is contained in:
14
examples/aws-lambda/index.mjs
Normal file
14
examples/aws-lambda/index.mjs
Normal 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user