firebase-hosting

How to move custom domain from one firebase project to another without downtime?

心不动则不痛 提交于 2021-02-07 18:46:56
问题 I have a firebase project that serves live users through a custom domain. I need to move the custom domain to the new version of application that is running in a different firebase project. If I delete the custom domain and add it in another firebase project, how much time will it take to reflect the change? How do I minimize the downtime? 回答1: Checked with Firebase support. This can be done without downtime. Here are their instructions: To delete your custom domain from the project, follow

Redirects on firebase with “?” query parametres

拥有回忆 提交于 2021-02-07 12:18:25
问题 I'm trying to set up redirects domains that contain query parameters. However no mather what i do every url with query parametres are ignored. Here is an example: "redirects": [{ "source" : "/kunstner.php\\?artist_id=10175", "destination" : "https://listen.no/?artist=10010", "type" : 301 }, { "source" : "/kunstner.php\\?artist_id=12194", "destination" : "https://listen.no/?artist=11998", "type" : 301 } ] These work if i run firebase serve and try them locally, however not when i deploy it to

How can I reset the default project hosting with firebase?

让人想犯罪 __ 提交于 2021-02-07 07:31:36
问题 I have been using firebase to test apps. I set a certain project as the default. Now I would like to deploy a different project but do not understand how to remove the previous project as a default. (I have almost no experience using the terminal). 回答1: You can change the default project that the Firebase CLI uses in a directory by running: firebase use --add Then in the list of projects, select your project. And then finally for the alias name enter default (or whatever you entered before).

Dynamic serving on Firebase Hosting (Vary HTTP Header)

被刻印的时光 ゝ 提交于 2021-02-07 02:48:53
问题 I would like to serve two different versions of my statically generated website: mobile version and tablet, desktop version on the same url - basically I want to use Dynamic serving and Vary HTTP Header - Vary: User-Agent as described here: https://developers.google.com/webmasters/mobile-sites/mobile-seo/dynamic-serving I want to use: responsive web design / rwd for desktop and tablet versions with desktop optimised image sizes and assets adaptive web design / awd with responsive web design

How to create specific URIs for users in FIREBASE WEB javascript

我的梦境 提交于 2021-02-05 12:11:23
问题 I have a firebase project developed in javscript html and css that works like a social network, i have users in my database and these users have profile information to show. The problem is, i want to associate each user to a specific URI so everyone can use that link to access a user's info. Example: I want to generate a link for users like "https://myproject.com/users/john-doe" (for user john doe) and i want it to bring to that specific user page. I'm using firebase hosting and there is

How to create specific URIs for users in FIREBASE WEB javascript

拈花ヽ惹草 提交于 2021-02-05 12:09:23
问题 I have a firebase project developed in javscript html and css that works like a social network, i have users in my database and these users have profile information to show. The problem is, i want to associate each user to a specific URI so everyone can use that link to access a user's info. Example: I want to generate a link for users like "https://myproject.com/users/john-doe" (for user john doe) and i want it to bring to that specific user page. I'm using firebase hosting and there is

How to create specific URIs for users in FIREBASE WEB javascript

青春壹個敷衍的年華 提交于 2021-02-05 12:07:16
问题 I have a firebase project developed in javscript html and css that works like a social network, i have users in my database and these users have profile information to show. The problem is, i want to associate each user to a specific URI so everyone can use that link to access a user's info. Example: I want to generate a link for users like "https://myproject.com/users/john-doe" (for user john doe) and i want it to bring to that specific user page. I'm using firebase hosting and there is

Firebase Hosting and Custom Authentication

倖福魔咒の 提交于 2021-02-05 08:52:34
问题 Is it possible to use a custom authentication strategy, and Firebase hosting? Due to the lack of server-side code support with the Hosting plan, it doesn't seem likely, or am I missing something? 回答1: Firebase Hosting is a way to serve static assets to web visitors. It cannot run your custom code on Firebase's servers. So the answer is indeed: no, you cannot use Firebase Hosting to mint custom JWT tokens on the Firebase servers. 来源: https://stackoverflow.com/questions/34411247/firebase

My website is not showing after deploy in firebase how to solve this

蓝咒 提交于 2021-02-05 04:56:18
问题 I have complete all process Firebase Login Firebase init Firebase deploy now finally i got a link https://testing-37553.firebaseapp.com/ but my website not showing so what should i have to do. 回答1: What you are seeing is the default index.html page that is created by the CLI when you create a new project. You should adapt this index.html page as you whish (i.e. by modifying the HTML/CSS/JS code of this page, in your local project directory) and re-deploy the project with firebase deploy or

My website is not showing after deploy in firebase how to solve this

笑着哭i 提交于 2021-02-05 04:55:32
问题 I have complete all process Firebase Login Firebase init Firebase deploy now finally i got a link https://testing-37553.firebaseapp.com/ but my website not showing so what should i have to do. 回答1: What you are seeing is the default index.html page that is created by the CLI when you create a new project. You should adapt this index.html page as you whish (i.e. by modifying the HTML/CSS/JS code of this page, in your local project directory) and re-deploy the project with firebase deploy or