diff --git a/.github/workflows/bundle-analysis.yml b/.github/workflows/bundle-analysis.yml index 06ee115a6..72c404d7c 100644 --- a/.github/workflows/bundle-analysis.yml +++ b/.github/workflows/bundle-analysis.yml @@ -52,4 +52,4 @@ jobs: NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} NEXT_PUBLIC_APP_URL: ${{ secrets.NEXT_PUBLIC_APP_URL }} - DATABASE_URL: ${{ secrets.DATABASE_URL }} + SUPABASE_URL: ${{ secrets.SUPABASE_URL }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48f3b039f..0e7ca0cde 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,3 +60,4 @@ jobs: NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} NEXT_PUBLIC_APP_URL: ${{ secrets.NEXT_PUBLIC_APP_URL }} + SUPABASE_URL: ${{ secrets.SUPABASE_URL }} diff --git a/apps/main/src/env.mjs b/apps/main/src/env.mjs index 718afd9fb..d3922f14f 100644 --- a/apps/main/src/env.mjs +++ b/apps/main/src/env.mjs @@ -7,7 +7,7 @@ export const env = createEnv({ * isn't built with invalid env vars. */ server: { - DATABASE_URL: z.string().url(), + SUPABASE_URL: z.string().url(), NODE_ENV: z.enum(["development", "test", "production"]), NEXTAUTH_SECRET: process.env.NODE_ENV === "production" @@ -46,7 +46,7 @@ export const env = createEnv({ * middlewares) or client-side so we need to destruct manually. */ runtimeEnv: { - DATABASE_URL: process.env.DATABASE_URL, + SUPABASE_URL: process.env.SUPABASE_URL, NODE_ENV: process.env.NODE_ENV, NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, NEXTAUTH_URL: process.env.NEXTAUTH_URL, diff --git a/turbo.json b/turbo.json index 97f905c66..899ebbbb8 100644 --- a/turbo.json +++ b/turbo.json @@ -19,7 +19,7 @@ "outputs": [".next/**"], "env": [ "NEXT_PUBLIC_APP_URL", - "DATABASE_URL", + "SUPABASE_URL", "NEXTAUTH_SECRET", "EMAIL_API_KEY", "NEXT_PUBLIC_VAPID"