What's wrong with this configuration that it will throw exception ``` appInfo: { appName: 'my...
n
What's wrong with this configuration that it will throw exception
Copy code
appInfo: {
      appName: 'myapp',
      apiDomain: 'http://api:3000',
      websiteDomain: 'http://localhost:4200',
      apiBasePath: '/v1/auth',
      websiteBasePath: '/auth'
    },
Exception:
Copy code
{
  err: Error: Please make sure that the apiDomain and websiteDomain have correct values
  ...
}
r
Hey!
api:3000 is not a valid domain name
n
even if its using docker internal network dns resolution
r
Yea. This should be a valid http domain. Since it’s related to the browser sending the request to that domain
And browser can’t send a request to http://api:3000
n
The issue is that it would be nextjs backend api (server side props) calling a nodejs backend api, so its container to container, not browser to container
r
Hmmm. Then this value shouldn’t matter. You can set it to be http://localhost:4200
n
Copy code
err: FetchError: request to http://localhost:3000/v1/graphql failed, reason: connect ECONNREFUSED 127.0.0.1:3000
One tick
Actually how do you init supertokens as a client running in node, not in react
r
Use the node SDK
2 Views