didx-xyz / ssi-trust-registry

Trust Registry for Self-Sovereign Identity Ecosystems
Apache License 2.0
6 stars 2 forks source link

chore: set backend url on frontend #178

Closed jakubkoci closed 9 months ago

jakubkoci commented 9 months ago

@rblaine95 I added a new env NEXT_PUBLIC_BACKEND_URL, that's for the frontend app to know what's the backend endpoint. There is also FRONTEND_URL env for backend to know what's the frontend to correctly set CORS.

Now, could you please create a new domain for the frontend server and set those two variables properly?

It should be something like

FRONTEND_URL=https://web.ssi-trust-registry.cloudapi.dev.didxtech.com/
NEXT_PUBLIC_BACKEND_URL=https://ssi-trust-registry.cloudapi.dev.didxtech.com/

That assumes we preserve the current backend address. Maybe we can change both of them in the following way:

FRONTEND_URL=https://web-trust-registry.cloudapi.dev.didxtech.com/
NEXT_PUBLIC_BACKEND_URL=https://api-trust-registry.cloudapi.dev.didxtech.com/

In the end, it's mainly up to you, how you want to deploy it.