diff --git a/.env b/.env index 1c23063..fef6ad9 100644 --- a/.env +++ b/.env @@ -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" \ No newline at end of file diff --git a/src/api/mutator/axios-instance.ts b/src/api/mutator/axios-instance.ts index bec7bd6..667adef 100644 --- a/src/api/mutator/axios-instance.ts +++ b/src/api/mutator/axios-instance.ts @@ -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