Custom domain but after discord OAuth site is using railway domain
Hi! I have a website deployed on railway which is using discord oauth to allow users to enter.
When you visit soundmapsniper.com, you are redirected to the oauth.
Once you have succesfully authorised your account however, the routes for my site are all using the generated railway domain, not my custom domain. Im not sure if this is just something i've setup wrong, or maybe something to do with discord oauth?
Thanks for any help π
Solution:Jump to solution
custom domains are easy to deploy, just put it on custom domain settings on the project and put the domain into cloudflare, if your oauth redirection somehow still redirecting to another domain, the best solution is to look at your code and debug it
5 Replies
Project ID:
N/A
i believe it's 100% problems from you own code, not railway...
Solution
custom domains are easy to deploy, just put it on custom domain settings on the project and put the domain into cloudflare, if your oauth redirection somehow still redirecting to another domain, the best solution is to look at your code and debug it
Im not using cloudflare its just railway deployed from my github, maybe using cloudflare would help π
Yeah it was me, thanks raf!
you need to change the callback url on ur discord application