hotfix: hard-coded URL for chat in dashboard #15
@@ -25,8 +25,8 @@ pub async fn check_auth() -> Result<AuthInfo, ServerFnError> {
|
|||||||
|
|
||||||
match user_state {
|
match user_state {
|
||||||
Some(u) => {
|
Some(u) => {
|
||||||
let librechat_url = std::env::var("LIBRECHAT_URL")
|
let librechat_url =
|
||||||
.unwrap_or_else(|_| "http://localhost:3080".into());
|
std::env::var("LIBRECHAT_URL").unwrap_or_else(|_| "http://localhost:3080".into());
|
||||||
Ok(AuthInfo {
|
Ok(AuthInfo {
|
||||||
authenticated: true,
|
authenticated: true,
|
||||||
sub: u.sub,
|
sub: u.sub,
|
||||||
|
|||||||
Reference in New Issue
Block a user