Adjusting CNAME Records

Mar 22 2023

Connecting an app to a new domain

After listening to a CodeNewbie podcast, I decided to take their sponsor up on an offer. I registered one of the (1-year) free .dev domains and connected the Velocireader project to it first. I didn’t want it to be on the root of the domain, so I listed a subdomain in the custom domain section for Railway’s settings. Then I added the corresponding CNAME record to porkbun’s settings. Then I needed to add the subdomain to the ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS arrays in my app’s file.