Getting, Uncaught Error: Please provide a valid domain name, on website when deploying it. My api do...
k
Getting, Uncaught Error: Please provide a valid domain name, on website when deploying it. My api domain is set to "api.ecocix.com" - running and works fine. when I tested the frontend with localhost. My frontend domain is set to "https://ecocix.com" and I get the error.
n
Hi @kiesker Which SDKs are you using? And can you share the code you used to initialise SuperTokens (frontend and backend)
k
The is my frontend it works on local host, its just when I try to build for my domain, using render.com I get this issue.
Copy code
supertokens-auth-react": "^0.33.1", "supertokens-web-js": "^0.6.0",
The env variables are set to this "https://api.ecocix.com" and "https://www.ecocix.com"
This is my backend code, the version is
Copy code
"supertokens-node": "^14.1.4",
and the .env are the same "https://api.ecocix.com" "https://www.ecocix.com"
I already had the api running and it worked fine when I was running the frontend code in localhost. Could it because of the wrong domain names, since render.com makes there own https://ecocix.onrender.com/, and for custom they redirect using dns.
n
Can you try using
https://ecocix.com
instead of
https://www.ecocix.com
?
k
Ok changed it, but still nothing
im using custom domain on render -
Also using cloudfare
Changed it up to match the https://ecocix.com
@rp Hey, sorry to bother you. But can you give me some advice on how to fix this problem?
Nvm hardcoding it work.
Idk why tho
180 Views