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

♻️Bootstrap frontend #257

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

♻️Bootstrap frontend #257

wants to merge 3 commits into from

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 16, 2024

Purpose

We were providing a frontend development container to the developers, but it was not working properly.
Problem of hot reload was present for Windows and Linux users.
We stop to provide this development container and we will provide a container connected to the build of the frontend.
You can still access the frontend after bootstrap on the "localhost:3000", but if you want to develop you will have to install the frontend dependencies locally and run the frontend in development mode.
This will be more efficient and will avoid the problem of hot reload, and right on folder access.

Proposal

  • 🔧(docker) add missing media url env
  • 🧑‍💻(project) improve frontend bootstrap
  • ✅(CI) refacto test-e2e

The env MEDIA_URL was missing in the frontend
Dockerfile. It is not necessary in our
running environment (staging / preprod ...) but it
is necessary if we want to run the frontend with
a different media url.
SW_DEACTIVATED was missing as well, we need to
deactivate the service worker in the frontend when
we test with Playwright.
@AntoLC AntoLC requested review from sampaccoud and removed request for sampaccoud September 16, 2024 13:59
We were providing a frontend development container
to the developers, but it was not working properly.
Problem of hot reload was present for Windows and
Linux users.
We stop to provide this development container and
we will provide a container connected to the build
of the frontend.
You can still access the frontend after bootstrap
on the "localhost:3000", but if you want to develop
you will have to install the frontend dependencies
localy and run the frontend in development mode.
This will be more efficient and will avoid the
problem of hot reload, and right on folder access.
With the new container available, we can simplify
the workflow by removing the build step
and using the container directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant