Search code examples
firebasednssquarespace

Not able to verify squarespace domain for non-www-prefixed url in firebase


I have a domain on square space and I am trying to connect my google firebase app to it.

I was able to setup the DNS properties for the www-prefixed url and I have that one working, but when I visit the site with the www-prefix excluded I receive a firebase error saying 'site not found.'

Since I see that it's reaching firebase I've attempted to setup a redirect in firebase to just forward all requests to made to the www-excluded url directly to the www-prefixed url, but firebase needs to verify I own the www-excluded domain first.

So, Firebase instructed me to open the DNS setting in squarespace and add a txt file to verify I own the www-excluded url, which I have done ( which is also part of what I did for the www-prefixed site successfully) but firebase has not been able to verify the site.

Do I need to add additional records in order for this firebase to verify my site?

In order to get the www url working I had to add an @ A record and the www CNAME record for the www-prefixed url in order to get it to verify, but I am not sure how to get this non-prefixed url to work.


Solution

  • When setting up custom domains in Firebase, the tool gives the user different values and instructs the user to update their domain provider's DNS settings

    The problem is that these values provided by the firebase tool may need to be adjusted to match what a given domain provider is expecting.

    This doc from firebase shows what they expect from different providers and how to update the values.

    https://firebase.google.com/docs/hosting/custom-domain

    For Squarespace domains, they instruct the user to omit the host for all TXT records and A records rather than using what the firebase tool provides.

    This enabled me to connect the non-www site as those values were able to be detected immediately ( zero propagation wait time.)

    For CNAME records, Firebase instructs the user to put in the entire host www.???.com.

    However in this doc from Squarespace they instruct the user to only use www for CNAME records. By omitting the rest of the host name firebase was immediately able to verify the domain and proceed to minting an SSL cert.

    https://support.squarespace.com/hc/en-us/articles/215744668-Pointing-a-Squarespace-domain