Different SALEOR_API_URL on server and client side #513
-
Hi, I am new to Saleor. I am trying to run it behind an nginx proxy. For this I would like the react-storefront to use a different API url on the server side (something like http://localhost:8000/graphql/) and browser side (something like https://shop.mynet.com/graphql/). I tried:
But I get an error where I can see that the server is using the public url.
It is not clear for me whether the SALEOR_API_URL and NEXT_PUBLIC_API_URI variables are supposed to do what I am looking for. Hence my question: is it possible to use a different url on the server and client side ? Note I am in parallel looking into getting the certificate chain in the container but that is a separate issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello, Also do you expose both URL in the Dockerfile with ARG/ENV ? |
Beta Was this translation helpful? Give feedback.
-
Why don't you use |
Beta Was this translation helpful? Give feedback.
Why don't you use
https://shop.mynet.com/graphql/
on both the server and client side? What's the reasoning behind this?