BuilderIO/builder

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

k-schneider opened this issue · 0 comments

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' })