-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat(bff): serving static assets on bff #690
Conversation
Signed-off-by: Eder Ignatowicz <[email protected]>
/assign @lucferbux |
/assign @alexcreasy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Griffin-Sullivan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Co-authored-by: Griffin Sullivan <[email protected]> Signed-off-by: Eder Ignatowicz <[email protected]>
nice catch @Griffin-Sullivan |
/lgtm |
Description
This PR is a preparation for the BFF and FE being served in production on the same container.
At "/" we are now serving static files:
As we used to do, we keep serving the BFF API on "/api/v1/*".
It is important also to highlight that on production (when using binaries), we need to copy the assets to the target containers. I've decided not to pack the static assets in the binary and serve them in the filesystem. I believe this makes it more coherent with our architecture (but I'm open to discussion and suggestions). If you would like more details on this, please look at MakeFile and Docker file changes.
Changes on this PR:
How Has This Been Tested?
I've also started to test this with our production assets of frontend.
Kind of work, but I was not able to figure out how to fix the routing. I've asked for FE guys help to debug the proxy calls..
Merge criteria:
DCO
check)