R
Railwayβ€’4mo ago
Kylie Jenner

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:
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
Jump to solution
5 Replies
Percy
Percyβ€’4mo ago
Project ID: N/A
raf
rafβ€’4mo ago
i believe it's 100% problems from you own code, not railway...
Solution
raf
rafβ€’4mo ago
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
Kylie Jenner
Kylie JennerOPβ€’4mo ago
Im not using cloudflare its just railway deployed from my github, maybe using cloudflare would help πŸ˜„ Yeah it was me, thanks raf!
celebrations
celebrationsβ€’4mo ago
you need to change the callback url on ur discord application
Want results from more Discord servers?
Add your server