Skip to content

Commit

Permalink
Rename firebase config variables to match deployed variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed May 14, 2024
1 parent c2b87dd commit 47f8ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_FIREBASE_DEV_API_KEY="AIzaSyDa_YMeyzV0SkVe92vBZ1tVikWBmOU5KVE"
NEXT_PUBLIC_FIREBASE_DEV_AUTH_DOMAIN="dreamboothy-dev.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_DEV_PROJECT_ID="dreamboothy-dev"
NEXT_PUBLIC_FIREBASE_API_KEY="AIzaSyDa_YMeyzV0SkVe92vBZ1tVikWBmOU5KVE"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="dreamboothy-dev.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECT_ID="dreamboothy-dev"
NEXT_PUBLIC_BACKEND_URL="http://localhost:8080"
6 changes: 3 additions & 3 deletions src/api/mutator/axios-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { initializeApp, getApps, getApp } from 'firebase/app'
const BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL

const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_DEV_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_DEV_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FIREBASE_DEV_PROJECT_ID,
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
}
getApps().length === 0 ? initializeApp(firebaseConfig) : getApp()
export const AXIOS_INSTANCE = Axios.create({ baseURL: BACKEND_URL }) // use your own URL here or environment variable
Expand Down

0 comments on commit 47f8ad5

Please sign in to comment.