Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set backend url on frontend #178

Merged
merged 3 commits into from
Dec 11, 2023
Merged

chore: set backend url on frontend #178

merged 3 commits into from
Dec 11, 2023

Conversation

jakubkoci
Copy link
Collaborator

@jakubkoci jakubkoci commented Dec 6, 2023

@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.

* Bump `bitnami/moongodb`
* Add config for `FRONTEND_URL` and `NEXT_PUBLIC_BACKEND_URL`
* Add necessary Ingress and Service changes to correctly route
  Frontend/Backend
* Bump Datadog JSLib
@jakubkoci jakubkoci merged commit f485b73 into main Dec 11, 2023
5 checks passed
@jakubkoci jakubkoci deleted the chore/backend-url branch December 11, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants