https://supertokens.com/ logo
#general
Title
# general
m

marshmalon

02/20/2022, 10:29 PM
I have setup supertokens on one app with a specific sub domain lets call it foo.app.com. I have the supertokens api running on foo.app.com/api/v3/auth and the front-end is hitting the api from foo.app.com/auth I want to setup another app that only has a front end. So I was trying to follow the tutorial and essentially set the apiDomain to foo.app.com and websiteURL to bar.app.com. I deployed the bar.app.com website, but when it redirects to bar.app.com/auth it keeps saying there is no assets being returned. However when I test it locally but just launched both apps a local versions I am able to get the front end. Should there be another setting I use to hit an existing instance on another app
r

rp

02/21/2022, 4:13 AM
Hey @User can I see the full stack trance of the error?
m

marshmalon

02/21/2022, 4:38 AM
It's really just a 404 error where the front end doesn't render
So I'm hosting the front end on github pages. But I don't think that should be the issue. I am compiling the react code using react-scripts and serving that. When i do it locally it works :/
r

rp

02/21/2022, 4:48 AM
Hmmm. Can I see the frontend supertokens.init config?
m

marshmalon

02/21/2022, 5:01 AM
Idk what fixed it. I changed something to https and it loaded
r

rp

02/21/2022, 5:01 AM
oh hmm. Interesting
Okay. If this issue comes back again, please feel free to unarchive this thread.
2 Views