This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set variables
|
||||
FUNCTION_NAME="bknd-lambda"
|
||||
ROLE_NAME="bknd-lambda-execution-role"
|
||||
FUNCTION_NAME="userbase-lambda"
|
||||
ROLE_NAME="userbase-lambda-execution-role"
|
||||
|
||||
echo "Starting cleanup of AWS resources..."
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set variables
|
||||
FUNCTION_NAME="bknd-lambda"
|
||||
ROLE_NAME="bknd-lambda-execution-role"
|
||||
FUNCTION_NAME="userbase-lambda"
|
||||
ROLE_NAME="userbase-lambda-execution-role"
|
||||
RUNTIME="nodejs22.x"
|
||||
HANDLER="index.handler"
|
||||
ARCHITECTURE="arm64" # or "x86_64"
|
||||
@@ -16,7 +16,7 @@ echo "Building Lambda package..."
|
||||
rm -rf dist && mkdir dist
|
||||
|
||||
# copy assets
|
||||
node_modules/.bin/bknd copy-assets --out=dist/static
|
||||
node_modules/.bin/userbase copy-assets --out=dist/static
|
||||
|
||||
# Run esbuild and check for errors
|
||||
# important to use --platform=browser for libsql dependency (otherwise we need to push node_modules)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { serve } from "bknd/adapter/aws";
|
||||
import { serve } from "userbase/adapter/aws";
|
||||
|
||||
export const handler = serve({
|
||||
// to get local assets, run `npx bknd copy-assets`
|
||||
// to get local assets, run `npx userbase copy-assets`
|
||||
// this is automatically done in `deploy.sh`
|
||||
assets: {
|
||||
mode: "local",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"bknd": "file:../../app"
|
||||
"userbase": "file:../../app"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
|
||||
Reference in New Issue
Block a user