DEV Community

Discussion on: To the Stars with Quasar & Firebase - Initial Service & Structure

Collapse
 
stephencarico profile image
Stephen Carico

My quasar.env.json file and package.json scripts are exactly as yours are in your repo, but in my serverConnection.js file this is what worked...

const config = process.env.FIREBASE_CONFIG

Collapse
 
adamkpurdy profile image
Adam Purdy

From the QEnv docs you can set a "Common Root Object". This is what I did for my QEnve installation and is reflected in my code in the serverConnection.js file.

QEvn docs: github.com/quasarframework/app-ext...

Collapse
 
stephencarico profile image
Stephen Carico

Ah. I see what happened. During the QEnv setup I defaulted to "none" when asked, "What name would you like to use for your Common Root Object." After going into my quasar.extensions.json file I was able to switch the common_root_object value to environments. Worked like a charm! Thank you for responding and pointing me to the root of the issue.

Thread Thread
 
adamkpurdy profile image
Adam Purdy

Thank you for posting your question. I added a bit of guidance in that area of the article pointing out that piece of QEnv.