I am making a react app with firebase and I want to use environment variables for the firebase config. this is the firebase config in my react apps src folder
import firebase from "firebase"
import "firebase/auth"
console.log(process.env)
const config = {
//private stuff
};
// Initialize Firebase
firebase.initializeApp(config);
firebase.analytics();
export default firebase
the issue is with that console log, I am using that for debugging, it is logging
NODE_ENV: "production"
PUBLIC_URL: ""
WDS_SOCKET_HOST: undefined
WDS_SOCKET_PATH: undefined
WDS_SOCKET_PORT: undefined
when it should be logging
NODE_ENV: "production"
PUBLIC_URL: ""
WDS_SOCKET_HOST: undefined
WDS_SOCKET_PATH: undefined
WDS_SOCKET_PORT: undefined
GOOGLE_API_KEY: "key"
why aren't my custom environment variables showing up? I am using AWS amplify for deployment so that is what would be providing the environment variables.