Skip to content

Commit

Permalink
Check v1
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jun 11, 2024
1 parent b4a1455 commit e1887d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,5 @@ jobs:
testscript: test.sh
secrets:
ENV_FILE: |
NEXT_PUBLIC_FIREBASE_API_KEY='${{ secrets.NEXT_PUBLIC_FIREBASE_API_KEY }}'
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN='${{ secrets.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN }}'
NEXT_PUBLIC_FIREBASE_PROJECT_ID='${{ secrets.NEXT_PUBLIC_FIREBASE_PROJECT_ID }}'
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET='${{ secrets.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET }}'
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID='${{ secrets.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID }}'
NEXT_PUBLIC_FIREBASE_APP_ID='${{ secrets.NEXT_PUBLIC_FIREBASE_APP_ID }}'
NEXT_PUBLIC_FIREBASE_CHECK='CHECK'
14 changes: 8 additions & 6 deletions env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ import { z } from 'zod'
export const env = createEnv({
server: {},
client: {
NEXT_PUBLIC_FIREBASE_API_KEY: z.string().min(1),
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: z.string().min(1),
NEXT_PUBLIC_FIREBASE_PROJECT_ID: z.string().min(1),
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: z.string().min(1),
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: z.string().min(1),
NEXT_PUBLIC_FIREBASE_APP_ID: z.string().min(1),
NEXT_PUBLIC_CHECK: z.string().min(1),
NEXT_PUBLIC_FIREBASE_API_KEY: z.string().optional(),
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: z.string().optional(),
NEXT_PUBLIC_FIREBASE_PROJECT_ID: z.string().optional(),
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: z.string().optional(),
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: z.string().optional(),
NEXT_PUBLIC_FIREBASE_APP_ID: z.string().optional(),
},
runtimeEnv: {
NEXT_PUBLIC_CHECK: process.env.NEXT_PUBLIC_CHECK,
NEXT_PUBLIC_FIREBASE_API_KEY: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN:
process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
Expand Down

0 comments on commit e1887d4

Please sign in to comment.