0

I'm serving my web-app with firebase hosting. A few aspects of my app are configureable based on user context (e.g. localization), and configuration is done in app's index.html.

Typically, I'd use a template engine on my own backend (e.g. velocity) to solve this problem, but there isn't seem to be an out-of-the-box solution for that.

  • Is there a workaround or a hack'ish way to do so with firebase?
  • Is there a way to execute code which will modify my statics?

thanks

tomper
  • 717
  • 2
  • 11
  • 25

1 Answers1

0

There is nothing built in to Firebase Hosting for detecting the browser locale and sending a locale-specific response. But you can easily accomplish this from the client-side. Some links to get you started:

Update

Firebase Hosting has not built-in server-side templating mechanism, not any other way to run your code on Firebase's servers.

See:

Community
  • 1
  • 1
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • thanks @frank-van-puffelen, it seems my question was not well-written, so I've updated it. Detection of user locale is not my concern, but rather the ability to pre-configure my entire served app (via `index.html`), where locale is just one example. i was actually looking for a velocity-like solution on firebase side. – tomper Feb 28 '16 at 06:12
  • Added a link about that to my answer. I'll mark your question as a duplicate of that question. – Frank van Puffelen Feb 28 '16 at 07:42