5 months ago
Hey all, I am currently struggling to connect my new squarespace domain to Railway. In my past experience it's has never been so tricky. Could someone assist please? Squarespace doesn't support CNAME flattening at the root
38 Replies
5 months ago
Hey @lyova please don't ping the team as per #🛂|readme. For your issue, it is best for you to set up your domain with Cloudflare, which can be done by changing your domain's nameservers to Cloudflare's.
https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
5 months ago
Cloudflare supports CNAME flattening and you will be able to create the requested CNAME record at the root once you have configured your domain with Cloudflare. Keep in mind that you may need to restart the custom domain process on Railway to ensure that it rechecks your domain for the CNAME record.
I saw that this was possible to do it without passing through Cloudfare though. Is it still doable? I would like to avoid that
5 months ago
Using a provider that has CNAME flattening is your safest bet, as it is still the recommended way for setting up an apex domain.
I just figured it out by just adding custom DNS record in Squarespace and it works. Why wouldn'it be safe? Thank you
5 months ago
I assume that you are using an ALIAS record, if Railway ever change the proxy's IP in the future, your site will not be reachable. Railway changed the IP in the past, and it could get changed again.
Okay i just configured it via Cloudfare by adding CNAME to dns settings in cloudfare and updating nameservers in Squarespace. is there something else i should do? the URL is working now but i am wondering if it's because of the cache this morning or it's indeed well implemented
in my railway account, does it look all good from your side? 🙏
thanks again for your help
5 months ago
In case you are using Cloudflare's proxy, the dashboard should also reflect that.

5 months ago
The Railway dashboard
whats weird is that my website is accessible via domain-name.com but not with www.domain-name.com
is there any documentation i can have to debug this by any chance ?
once it's done, i will be considering looking for a paid plan, but for the moment it's still complicated
5 months ago
Project ID, please. You can copy it from the URL.
5 months ago
[www.domain-name.com](www.domain-name.com) does not work because you do not have [www.domain-name.com](www.domain-name.com) set on the service as a public domain.
5 months ago
Am I okay sharing your domain publicly?
I currently have 2 records in Networking section
my-app.up.railway.app
domain-name.com
what exactly should i update here to make it work ?
5 months ago
If you want the www subdomain to work, you need to add the www subdomain.
I am sorry but you could please precise exactly what should be added and where exactly? That would help. Its the first time I am using Railway.
5 months ago
I don't think I can be any more precise unless I replace the example domain in this sentence with your own domain.
I am pretty sure there are ways to describe it without giving the domain…
Example :
This section contains 2 records
1st record should be updated to XXXX
2nd record should be deleted (or whatever)
Sorry for the confusion here but as I said : it's the first time I am using Railway, I would like to find a way to fix the problem and then take a plan
5 months ago
Click the + Custom Domain button to add another domain.
5 months ago
Do not delete or edit any of your current domains.
5 months ago
On the Hobby plan you can add up to two custom domains.
Not sure to understand why i neede to 2 custom domains, but ok. I have just added it and it gave me another DNS record. What should i do with that?
5 months ago
I was under the impression you wanted [domain-name.com](domain-name.com) and www.[domain-name.com](domain-name.com) to work, that is 2 domains.
Didn't know that. Thanks. So nothing else to do on my side? Nothing to add to Cloudfare neither?
5 months ago
When you add the www domain, you will need to follow the given instructions, the same as you have done previously.
Strange because the www.domain-name.com works already even though i didnt update anything since on Cloudfare