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

Add environment variables to sample-apps #113

Open
vferraro-scottlogic opened this issue Nov 16, 2023 · 1 comment · Fixed by #116
Open

Add environment variables to sample-apps #113

vferraro-scottlogic opened this issue Nov 16, 2023 · 1 comment · Fixed by #116
Assignees

Comments

@vferraro-scottlogic
Copy link

vferraro-scottlogic commented Nov 16, 2023

Background

We have a vite.config.js file in showcase/ which sets some environment variables. The "Local" env variable is used inside useLayoutManager hook to determine whether to use the local or remote persistence manager. We want the same environment variable to be available in sample-apps/

Work Required

  • make environment variable "local" available within vuu-ui/sample-apps. Should be accessible through global process (i.e. process.env.LOCAL) (vite.config.js? .env?)
  • add entry for process.env.LOCAL in main build (esbuild.mjs) i.e. see showcase vite.config.js and main build script
  • add flag location to layout server documentation
  • remove check on process.env.LOCAL in useLayoutManager
@cfisher-scottlogic
Copy link

Updated documentation here.

@cfisher-scottlogic cfisher-scottlogic removed their assignment Nov 22, 2023
@cfisher-scottlogic cfisher-scottlogic self-assigned this Jan 2, 2024
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 a pull request may close this issue.

2 participants