diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e2571e6..ff9862f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,4 +20,4 @@ jobs: environment: 'staging' - uses: ArtiomTr/jest-coverage-report-action@v2 with: - test-script: source .env && NODE_ENV=development pnpm test + test-script: source .env && pnpm test diff --git a/src/env.mjs b/src/env.mjs index 7246ba2..e61b324 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -4,11 +4,15 @@ import { z } from 'zod'; // Base schema for common variables const baseSchema = { server: { - NODE_ENV: z.enum(['development', 'test', 'production']), + NODE_ENV: z + .enum(['development', 'test', 'production']) + .default('development'), SENTRY_AUTH_TOKEN: z.string(), }, client: { - NEXT_PUBLIC_NODE_ENV: z.enum(['development', 'test', 'production']), + NEXT_PUBLIC_NODE_ENV: z + .enum(['development', 'test', 'production']) + .default('development'), }, // ... other shared properties };