Serverless functions for the Treasure ecosystem
- Node v20+
Install dependencies:
npm installCreate an environment variables file based off the example and fill in with your values:
cp .env.example .envInvoke any function locally by replacing functionName in the following command:
serverless invoke local -f functionNameMerge changes to main branch to automatically deploy to Treasure's AWS instance via GitHub Actions. Changes will be visible in ~5 minutes after cache expires.