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

Web-Ui: fix ENV for using local Basic Auth and OAuth #3837

Closed
lorriborri opened this issue Jan 30, 2025 · 0 comments · Fixed by #3838
Closed

Web-Ui: fix ENV for using local Basic Auth and OAuth #3837

lorriborri opened this issue Jan 30, 2025 · 0 comments · Fixed by #3838
Assignees
Labels

Comments

@lorriborri
Copy link
Member

Situation

Currently the ENV VITE_API_LOCAL_DEV should manage if the loal basic auth is set or not. The env is a string, but we is read as boolean.

Wanted

Transform ENV into boolean

Solution

LOCAL_DEV: Boolean(import.meta.env.VITE_API_LOCAL_DEV === 'true') || false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant