Skip to content

Commit

Permalink
build: fix parsing of FIREBASE_WEB_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Jan 3, 2021
1 parent e4d9850 commit be74417
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ module.exports = {
},

publicRuntimeConfig: {
firebase: process.env.FIREBASE_WEB_CONFIG || require(firebaseWebConfigPath),
firebase: process.env.FIREBASE_WEB_CONFIG
? JSON.parse(process.env.FIREBASE_WEB_CONFIG)
: require(firebaseWebConfigPath),
},

env: {
Expand Down

1 comment on commit be74417

@vercel
Copy link

@vercel vercel bot commented on be74417 Jan 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.