An opinated boilerplate to fast start serverless apps using SST
- Node 16.x
- NPM 9.x
Recommendation: NODE and NPM versions are pinned on package.json, use Volta
- create a
.env.dev
insidesrc/packages/prisma
and addDATABASE_URL
- run
npm run db:push:dev
to sync your dev db - create your prod
.env
and migration/push scripts
DB connection inside functions is powered by SST secrets, these secrets need to be configured before deploy function
npx sst secrets set DATABASE_NAME value
npx sst secrets set DATABASE_USER value
npx sst secrets set DATABASE_HOST value
npx sst secrets set DATABASE_PASS value
read more about secrets on SST docs https://docs.sst.dev/config#secrets
npm run sst dev