Firebase Hosting, Angular, and SEO

690 views
Skip to first unread message

Matt Rocco

unread,
Dec 9, 2016, 11:03:15 AM12/9/16
to Firebase Google Group
Hello,

I've recently launched an angular application with Firebase (I was blown away by how fast you can develop things with Firebase) and am using Firebase Hosting and am having some trouble with SEO.

I have many user generated pages that I want to be index by search engines. Currently I am generating a dynamic sitemap.xml with all the urls, but it seems that the search crawlers are only seeing a blank page when they go to those webpages. 

I think I need to prerender the page and serve the search crawler a static html page using a service like brombone, Phantom, or Prerender.io but I am having trouble setting these up with Firebase Hosting (I am using html5 push state for pretty urls). I need to send the search crawlers to our static html page but I can't figure out how with Firebase Hosting - is this possible or do I need to look into another hosting solution?

Some of the other forum posts about this topic end with someone saying "We're working on it" but I need my pages to the top of searches asap :-)
If this is something not currently support by Firebase, does anyone have any suggestions for a workaround? 

Thanks,
Matt

Michael Bleigh

unread,
Dec 9, 2016, 5:00:09 PM12/9/16
to Firebase Google Group
There is no current way to do prerendered or server rendered content on Firebase Hosting. Google's crawlers will render JS, so you shouldn't have issues with your user content appearing in search results even though it's not generated server-side. You might want to remove whatever you're doing for the sitemap.xml because if it's not a static file Google may be misreading it (JS shouldn't be available or executing in an XML file anyway).

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3dfb7fb8-b8f6-4fef-ba91-49c111ac15ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages