How to remove firebase custom domain?
I have created firebase hosting site and it connected to my domain(www.mydomain.com
). But I want to remove this firebase hosting site and I want to get back my previous site on my domain. I deleted my custom domain from my firebase console so it disconnected. However when I go to my domain it says Site Not Found
. How I get my previous site?
1 answer
-
answered 2018-07-12 07:29
MarcoDaniels
You probably have to change your
DNS nameservers
on your domain provider back to the providers original IP's.Here's some explanation from GoDaddy.
Also, it always takes some time to propagate the changes. So it might be that you only need to wait.
See also questions close to this topic
-
Flutter firebase_database get children
Hi I want to deserialise the snapshot from the realtime database to a Company object and add it to a _companies list. But I keep getting an error...
This is what I have so far:
List<Company> _companies = []; @override void initState() { // TODO: implement initState super.initState(); getItems().then((list){ print("Now the list is here"); setState(() { for (int i=0; i < list.length; i++) { Map<String, dynamic> map = list[i]; Company company = new Company.fromMap(map); _companies.add(company); } }); }); } static Future<List> getItems( ) async { Completer<List> completer = new Completer<List>(); FirebaseDatabase.instance .reference() .child("Companies") .once() .then( (DataSnapshot snapshot) { List map = snapshot.value; //It fails here completer.complete(map); } ); return completer.future; }
This is my Company class:
class Company { String key; String category; String company_name; String company_url; String country; String description; String email; String faq_url; String instagram_url; String logo_url_image; String p_category; String parent_company_ok; String timestamp; Company(); Company.fromSnapshot(DataSnapshot snapshot) : key = snapshot.key, category = snapshot.value['category'], company_name = snapshot.value['company_name'], company_url = snapshot.value['company_url'], country = snapshot.value['country'], description= snapshot.value['description'], email = snapshot.value['email'], faq_url = snapshot.value['faq_url'], instagram_url = snapshot.value['instagram_url'], logo_url_image = snapshot.value['logo_url_image'], p_category = snapshot.value['p_category'], parent_company_ok = snapshot.value['parent_company_ok'], timestamp = snapshot.value['timestamp']; }
How ever, it fails in getItems( ) on
List map = snapshot.value;
. With the exeption:_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'List<dynamic>'
Also if anyone can provide the code for showing the children in a List widget I would be very happy :)
Here is my data structure in firebase realtime database:
-
Get Identity Provider tokens after creating user in Firebase
I am working on a web app that has "Sign in with Google" and "Login with Facebook" buttons. After user successfully signs into the app backed by Firebase, I want to be able to make API calls to their Google and Facebook data. Example is fetch their photos from Google Photos or Facebook.
Normally this is easy to do when you use Google Auth APIs on web and on signing in, you get Auth Code that you can pass to your server and server exchanges that one-time-use code for Access Token and Refresh Token and store them on server side for any future API calls. Here is a link to tutorial for this approach - https://developers.google.com/identity/sign-in/web/server-side-flow
With Firebase being my backend and with FirebaseUI authenticating users to my web app, how can I get the code that I can pass to Firebase Function which can then exchange it for Access Token and Refresh Token and save it into Firestore for further API calls.
-
Root Controller UINavigationBar disappears after user logout with Firebase
I'm facing a slight problem with my UINavigationBar.
I have a an Initial Root View Controller (ViewController) followed by 2 View Controllers (LoginMRNViewController and LoginOTPViewController) that are used to login the user with One Time Password. I also have NavigationController used to navigate the user to his/her homepage after logging in. In the homepage, I have a (Logout) button, that logs out the user with Firebase and navigates him/her to the Initial Root View Controller (ViewController).
The UINavigationBar works like a charm, however, whenever the user logout, he is navigated to the Initial Root View Controller (ViewController) but the UINavigationBar completely disappears!
My logout function:
@IBAction func logoutPressed(_ sender: Any) { do { try Auth.auth().signOut() self.performSegue(withIdentifier: "goToLoginScreen", sender: self) print ("User logged out") } catch let error { print ("Failed to logout with error", error) } }
Here's how my Storyboard looks like.
EDIT:
I tried to put this in my Initial Root View Controller (ViewController) and the other 2 View Controllers (LoginMRNViewController and LoginOTPViewController) in the ViewWillAppear method, but unfortunately it did not work.
self.navigationController?.setNavigationBarHidden(false, animated: false) tabBarController?.tabBar.isHidden = false
Here's how my updated Storyboard look like.
-
How can I setup Firebase hosting multisites with Nextjs
I'm trying to deploy nextjs app to firebase hosting and want to support multiple site. When I deploy it all app renders the default app. How can I fix this?
I was following the tutorial here on Deploying multiple sites to firebase using AngularJs and I tried to replace Angularjs with NextJs
scripts in package.json
{ "scripts": { "accounts": "next \"src/apps/accounts/\"", "accounts-build": "next build \"src/apps/accounts/\"", "admin": "next \"src/apps/admin/\"", "admin-build": "next build \"src/apps/admin/\"", "preserve": "npm run build-public && npm run build-funcs && npm run admin-build && npm run copy-deps && npm run install-deps", "serve": "cross-env NODE_ENV=production firebase serve", "predeploy": "npm run build-public && npm run build-funcs && npm run accounts-build && npm run admin-build && npm run copy-deps", "deploy": "firebase deploy", "clean": "rimraf \"dist/functions/**\" && rimraf \"dist/public\"", "build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C", "build-funcs": "babel \"src/functions\" --out-dir \"dist/functions\"", "copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\" -C", "install-deps": "cd \"dist/functions\" && npm i" } }
firebase.json
{ "hosting": [ { "target": "accounts", "public": "dist/public", "rewrites": [ { "source": "**/**", "function": "accounts" } ] }, { "target": "admin", "public": "dist/public", "rewrites": [ { "source": "**/**", "function": "admin" } ] } ], "functions": { "source": "dist/functions" } }
.firebaserc
{ "projects": { "default": "example-app" }, "targets": { "example-app": { "hosting": { "accounts": [ "example-accounts" ], "admin": [ "example-admin" ] } } } }
index.js in functions
import {https} from 'firebase-functions' const dev = process.env.NODE_ENV !== 'production' const app = require('next')({dev, conf: {distDir: 'next'}}) const handle = app.getRequestHandler() const accounts = https.onRequest((req, res) => app.prepare().then(() => handle(req, res))) const admin = https.onRequest((req, res) => app.prepare().then(() => handle(req, res))) export {accounts, admin}
next.config.js moved it to the root folder
module.exports = { distDir: '../../../dist/functions/next' }
All app render the default Accounts App. would like the admin to render the admin app.
-
After connect Firebase hosting to a domain, does authDomain or databaseURL in config change?
I have a site in production.
After connect Firebase hosting to a domain, does config change?
<pre> var config = { apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxx", authDomain: "xxxxxxxxx.firebaseapp.com", databaseURL: "https://xxxxxxxxx.firebaseio.com", projectId: "xxxxxxxxxx", storageBucket: "xxxxxxxxxx.appspot.com", messagingSenderId: "230086753769" }; firebase.initializeApp(config); </pre>
I need to know if I have to change my applications before connecting the domain. Thanks
-
Can a developer configure country restrictions on firebase hosting?
Is there a way to put restrictions on certain countries while serving site from Firebase Hosting services?
Or somehow I can serve different site content all together depending on different country.
-
Azure API Management Service custom domain
We have an Azure API Management Service and we need to configure custom domain with custom SSL certificate. We have it added to the custom domain section of the service as Proxy endpoint and have a certificate uploaded too. The deployed APIs reports the new hostname in Settings > Base URL but when I invoke the API url it replys with "Unknown host".
Any ideas?
-
Can I set up my own emails with my custom domain using Azure
I am below grade 1 level when it comes to in Domains, web hosting and Email hosting.
My partner purchased a domain name for one year on Spotify. We do not want to use any Spotify plans - as our business model is not a typical E-commerce. We therefore cannot manage our domain through Spotify.
We just want to be able to set up one landing page to start, and set up half dozen emails with the domain.
Is this possible to do in Azure? I have a monthly credit that I would like to use if this is an option.
Can someone please point me out to INTRO documentation on basics and if this is possible. Or do I just need to subscribe to a webhosting plan. Thank You Alex
-
APIs are not responding via Azure APIM developer portal
Recently I have configured custom domain for APIM proxy URL. Now When test the APIs on APIM developer portal, API calls are not triggering. When I test this APIs from "POST MAN", it is working fine. Yes, this issue is not affecting any application. But appreciate your support to identify the issue.
Note : I have cleared the cache of the browser and tried.
Thanks, Inzi