Skip to content

Commit

Permalink
env upadated for FCM
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas1434shinde committed Nov 27, 2024
1 parent cb862ce commit 9d93b5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const requestPermission = async () => {

if (permission === 'granted') {
const token = await getToken(messaging, {
vapidKey: process.env.NEXT_PUBLIC_VAPID_KEY,
vapidKey: process.env.NEXT_PUBLIC_FCM_VAPID_KEY,
});
console.log('Notification token:', token);
return token;
Expand Down
10 changes: 5 additions & 5 deletions firebaseConfig.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FCM_API_KEY,
authDomain: process.env.NEXT_PUBLIC_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_PROJECT_FCM_ID,
storageBucket: process.env.NEXT_PUBLIC_STORAGE_BUCKET,
messagingSenderId: process.env.NEXT_PUBLIC_MESSAGING_SENDER,
appId: process.env.NEXT_PUBLIC_FCM_APP_ID,
authDomain: process.env.NEXT_PUBLIC_FCM_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FCM_PROJECT_FCM_ID,
storageBucket: process.env.NEXT_PUBLIC_FCM_STORAGE_BUCKET,
messagingSenderId: process.env.NEXT_PUBLIC_FCM_MESSAGING_SENDER,
appId: process.env.NEXT_PUBLIC_FCM_FCM_APP_ID,
measurementId: process.env.NEXT_PUBLIC_FCM_MEASUREMENT_ID,
};

Expand Down

0 comments on commit 9d93b5e

Please sign in to comment.