I am attempting to deploy my nextJS 15 app to firebase App hosting, it build successfully but got the error of invalid api keys i am storing them like this.
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,
measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID,
};
On vercel you need to add them on environment variables but i cannot seems to find it on firebase App hosting.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744906026a4600260.html
评论列表(0条)