Skip to content

Commit

Permalink
🔥 Remove duplicated env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
leodr committed Feb 1, 2021
1 parent 316554b commit ace67e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=
FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY=
FIREBASE_CLIENT_EMAIL=
2 changes: 1 addition & 1 deletion api/firebase/firebase.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class FirebaseService {
if (admin.apps.length === 0) {
admin.initializeApp({
credential: admin.credential.cert({
projectId: this.configService.get("FIREBASE_PROJECT_ID"),
projectId: this.configService.get("NEXT_PUBLIC_FIREBASE_PROJECT_ID"),
privateKey: this.configService
.get("FIREBASE_PRIVATE_KEY")
.replace(/\\n/g, "\n"),
Expand Down
2 changes: 1 addition & 1 deletion scripts/seedDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { subMonths } = require("date-fns");

admin.initializeApp({
credential: admin.credential.cert({
projectId: process.env.FIREBASE_PROJECT_ID,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
privateKey: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, "\n"),
clientEmail: process.env.FIREBASE_CLIENT_EMAIL,
}),
Expand Down

0 comments on commit ace67e0

Please sign in to comment.