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

Qwik builder dev tools - option to change the env var check #3710

Open
k-schneider opened this issue Nov 1, 2024 · 0 comments
Open

Qwik builder dev tools - option to change the env var check #3710

k-schneider opened this issue Nov 1, 2024 · 0 comments

Comments

@k-schneider
Copy link

k-schneider commented Nov 1, 2024

Describe the bug
We want to get away from build-time environment variables in our Qwik apps (PUBLIC_ .env vars) so that we're able to build once and deploy for many environments. When you remove PUBLIC_BUILDER_API_KEY then the builder dev tools prompts you to connect to a builder space when the application is ran. Ideally there would be an option to disable this when adding the dev tools plugin to vite.

To Reproduce
Steps to reproduce the behavior:

  1. Have a Qwik app with the builder dev tools added
  2. Remove PUBLIC_BUILDER_API_KEY from .env
  3. Run the site and you're prompted to connect to a space

Expected behavior
If the key is needed by the dev tools, then perhaps being able to give it a different env var name when adding the plugin to vite could work? Something like builderDevTools({ apiKeyVar: 'BUILDER_API_KEY' })

@k-schneider k-schneider changed the title Qwik builder dev tools - option to disable the env var check Qwik builder dev tools - option to change the env var check Nov 7, 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

No branches or pull requests

1 participant