Qwik builder dev tools - option to change the env var check
- Dominant language
- TypeScript
- Stars
- 8.8k
- Forks
- 1.2k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 17
Description
**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' })`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.