You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Have a Qwik app with the builder dev tools added
Remove PUBLIC_BUILDER_API_KEY from .env
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' })
The text was updated successfully, but these errors were encountered:
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
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 removePUBLIC_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:
PUBLIC_BUILDER_API_KEY
from .envExpected 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' })
The text was updated successfully, but these errors were encountered: