Skip to content

Fix: blank page on local-with-mock due to .env.local overriding VITE_IDP - #283

Open
Baibhab23 wants to merge 7 commits into
mainfrom
281-bug-ui-starting-with-different-profile-loads-environment-variables-from-other-profiles
Open

Baibhab23 wants to merge 7 commits into
mainfrom
281-bug-ui-starting-with-different-profile-loads-environment-variables-from-other-profiles

Conversation

@Baibhab23

@Baibhab23 Baibhab23 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

SUMMARY

What this pr is for?
The bug introduced in profile based docker

Issue Link

Link the Issue for which this PR was raised

Changes Summary

What changes has been done to solve the issue

  • Deleted .env.local — the only change needed. Without it, local-with-mock mode correctly loads only .env.local-with-mock, which uses LocalMockIdp instead of Keycloak.
  • Added .nvmrc pinned to Node 22 to match the Dockerfile (node:22-alpine)
  • Restored concurrently to v10.0.5 (the earlier downgrade to v8 was a workaround for Node 18, no longer needed)

Testing Done

How has the solution been tested?

Pull Request Checklist

Tasks Yes/No
Issue Linked?
Timeline of the Issue is updated?
Do these changes affect local development in anyway? (if yes mention effects in additional comments)

Additional Comments

Anything else regarding this PR

@Baibhab23 Baibhab23 changed the title Fix: downgrade concurrently to v8.2.2 for Node 18 compatibility Fix:UI starting with different profile loads environment variables from other profiles. Nov 22, 2026
- Reverted concurrently back to ^10.0.5 (Node 22 supports it)
- Added .nvmrc pinned to Node 22 to match Dockerfile
- .env.local deletion remains the actual bug fix (it was overriding
  VITE_IDP=keycloak in all modes, causing blank page on local-with-mock)
@Baibhab23 Baibhab23 changed the title Fix:UI starting with different profile loads environment variables from other profiles. Fix: blank page on local-with-mock due to .env.local overriding VITE_IDP Nov 22, 2026

@SuvabrataChowdhury SuvabrataChowdhury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mention the .env.local-e2e in the docs. I see we don't have any documentation regarding the UI image. Add a build command in the documentation which picks up the .env.local-e2e file during the docker build for easier reference.

@Sam007Yeah Sam007Yeah left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just check the one file, I don't know why and what changes are there.

Comment thread pipeline-ui/package-lock.json Resolved

@SuvabrataChowdhury SuvabrataChowdhury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the the original doc and mention that it can now spinup the whole stack. It's located at https://github.com/AutoBuilders/AutoBuild/blob/main/autobuild-docs/setup/backend/running-backend-containers.md .

Comment thread pipeline-ui/README.md Resolved
Comment thread pipeline-ui/.nvmrc Resolved
- docker-compose.yml: pipeline-ui build args now use variable substitution
  with defaults, so --env-file can override them without touching the Dockerfile
- pipeline-ui/README.md: replace verbose --build-arg list with the shorter
  `docker compose --env-file` command; run from project root
- running-backend-containers.md: rename "App stack only" to "Full stack (app + UI)"
  and note that docker compose up now includes pipeline-ui at localhost:3000

This branch has not been deployed

No deployments
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.

[Bug]: UI starting with different profile loads environment variables from other profiles.

3 participants