diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1f967713..fc829bce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy main branch development on: push: branches: - - main + - main, deploy jobs: deploy: diff --git a/apps/server/src/functions/env.js b/apps/server/src/functions/env.js index 6075cecf..5098aa45 100644 --- a/apps/server/src/functions/env.js +++ b/apps/server/src/functions/env.js @@ -4,9 +4,11 @@ import { z } from "zod"; dotenv.config({ path: "../../../../.env", }); + const envSchema = z.object({ DATABASE_URL: z.string(), + AWS_ACCESS_KEY_ID: z.string(), + AWS_SECRET_ACCESS_KEY: z.string(), }); - const env = envSchema.parse(process.env); export { env };