问题
Ok, it has been less than 24 hrs but more than 10, and I find it odd that I am still getting a status of Needs setup in Firebase just trying to redirect to a custom domain, bought with Namecheap. I don't know what Im doing wrong but I still get the "insecure connection" error trying to access my site.
Here are the records specified in Firebase to be added to my Namecheap records:
Namecheap is in accordance:
I used @ for the same host as specified by Namecheap - is something wrong? How long should this take if not?
回答1:
You need to change the CNAME
record to your firebase app URL:example-app.firebaseapp.com.
(Make sure to include the dot at the end) and you should also change the TTL
on both A records
to Automatic.
Then, delete the URL Redirect
record.
That should fix your problem. I'd wait up to an hour after these changes for the changes to take effect.
This is what my namecheap DNS setup looks like
I added the www
A records because I have a redirect in my Firebase console, but you don't need those.
回答2:
Expanding on Devin's answer which helped immensely... Here are the steps that worked for me.
- Go to the Firebase console and click 'connect domain', and add your domain
- Remove all DNS records in Namecheap
- Add the TXT record that Google/Firebase suggests
- Go back to the Firebase console and click 'connect domain'
- Verify the domain ownership
- Add in the A records that Google/Firebase suggests
- Add a CNAME record pointing to the default Firebase URL, and any A records that Google/Firebase suggests for a site redirect, if you have one.
来源:https://stackoverflow.com/questions/48252041/dns-firebase-connect-to-namecheap-still-says-needs-setup