feat(dev): support shared environment directory - #2914
Conversation
- Allow Vite environment files to be loaded from QOVERY_CONSOLE_ENV_DIR - Document shared environment configuration across worktrees
|
View your CI Pipeline Execution ↗ for commit f014de9
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Pull request overview
This PR adds a local-development mechanism to load Console environment files from a stable, shared directory (useful across multiple Git worktrees), while keeping the existing default behavior and documenting the setup for contributors.
Changes:
- Document
QOVERY_CONSOLE_ENV_DIRusage inREADME.md. - Update
apps/console/vite.config.tsto load env files from a configurable directory and set Vite’senvDir. - Remove
QOVERY_CONSOLE_ENV_DIRfrom the inlined client env object to avoid exposing it to the browser bundle.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Documents how to start the Console with env files sourced from a shared directory via QOVERY_CONSOLE_ENV_DIR. |
| apps/console/vite.config.ts | Adds envDir support for Vite env loading and strips QOVERY_CONSOLE_ENV_DIR from the client-inlined env map. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Summary
Issue: N/A
Add support for loading Console environment variables from a stable directory shared across Git worktrees.
QOVERY_CONSOLE_ENV_DIRconfiguration for local developmentQOVERY_CONSOLE_ENV_DIRfrom being exposed to the clientREADME.mdScreenshots / Recordings
Not applicable.
Testing
yarn testoryarn test -u(if you need to regenerate snapshots)yarn formatyarn lintPR Checklist
.cursor/rules)feat(service): add new Terraform service) - required for semantic-releaseSummary by cubic
Supports loading Console environment variables from a shared directory so developers can reuse one env config across Git worktrees.
QOVERY_CONSOLE_ENV_DIRto point Vite at the directory containing the env files.QOVERY_CONSOLE_ENV_DIRfrom the client-side env bundle to avoid leaking it.README.md.Written for commit f014de9. Summary will update on new commits.