2

I am hosting a Firebase App and connected my custom domain to it, which was working smoothly. So my app is accessible at: https://example.com

Now, I want to serve the images, which are upload to the default Google Storage Bucket at a clean url (without access token) at: https://example.com/img/myimage.jpg. Futhermore, the images should be delivered via the CDN. How can this be achived?

What I have figured out so far:

I hope there is a simpler solution for solvig this common use case. Thx for support.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
user3735572
  • 33
  • 2
  • 6
  • 1
    The only CDN that Firebase provides is Firebase Hosting. But it's not integrated with Cloud Storage. Consider instead just deploying all your files to Firebase Hosting to get the benefits of its CDN. It'll be cheaper and faster than using Cloud Storage. – Doug Stevenson Dec 11 '18 at 16:22
  • 1
    Thanks for the good suggestion. I guess I could sellect the "Pay-As-You-Go" Pricing model and serve my ~200GB of images, right? I still have questions: 1.) Will new deployments of the app remove the static content? Maybe I should create a separated hosting for serving the images? 2.)How can I copy the initial data there? – user3735572 Dec 13 '18 at 12:29

0 Answers0