We assume that you have the dependency serverless installed on your computer.
.env.template
to .env
(git ignored) and update the variables.
- Note: by design, Serverless framework overrides environment variables already defined in your Scaleway account.
Steps:
- Install dependencies:
pnpm install
. - Build the project:
pnpm run build
. - Deploy in production:
SCW_DEFAULT_PROJECT_ID= SCW_SECRET_KEY= serverless deploy
- Or just
serverless deploy
if you already definedSCW_DEFAULT_PROJECT_ID
andSCW_SECRET_KEY
in your bash profile.