FirebaseExtended / polymerfire

Polymer Web Components for Firebase
https://www.webcomponents.org/element/firebase/polymerfire
MIT License
459 stars 142 forks source link

Automatically initializeApp on Firebase hosting #221

Closed justweb1 closed 12 months ago

justweb1 commented 7 years ago

Description

firebase-app should automatically initializeApp when being hosted on Firebase hosting. firebase-app should only have to be called like this:

<firebase-app name="optional"></firebase-app>

Expected outcome

firebase-app element should pull properties from the Firebase hosting ENV variables.

Actual outcome

Currently, dev has to create their own secrets or ENV variables.

mbleigh commented 7 years ago

This could be handled with an auto attribute that would go fetch the config from the reserved URL. However, that would be asynchronous which would make certain things difficult until we have a solution for lazy loading in the JS SDK.

justweb1 commented 7 years ago

@mbleigh I got this idea while watching one of your talks at I/O '17. I have been trying to figure out a solution. I think I might be close I'm going to put up a PR and try to get some help with it.

justweb1 commented 12 months ago

Changed to stale