File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828origins = [
2929 "http://localhost:8501" , # React app running on localhost
3030 "http://127.0.0.1:8501" ,
31- f"https://crossbarv2.hubiodatalab.com{ os .getenv ('CROSSBAR_LLM_ROOT_PATH ' )} " ,
31+ f"https://crossbarv2.hubiodatalab.com{ os .getenv ('REACT_APP_CROSSBAR_LLM_ROOT_PATH ' )} " ,
3232]
3333
3434app = FastAPI ()
Original file line number Diff line number Diff line change 11import axios from 'axios' ;
22import Cookies from 'js-cookie' ;
33
4- const CROSSBAR_LLM_ROOT_PATH = process . env . REACT_APP_CROSSBAR_LLM_ROOT_PATH || '/llm' ;
4+ const REACT_APP_CROSSBAR_LLM_ROOT_PATH = process . env . REACT_APP_CROSSBAR_LLM_ROOT_PATH || '/llm' ;
55
66const instance = axios . create ( {
7- baseURL : `https://crossbarv2.hubiodatalab.com${ CROSSBAR_LLM_ROOT_PATH } /api` , // Backend URL
7+ baseURL : `https://crossbarv2.hubiodatalab.com${ REACT_APP_CROSSBAR_LLM_ROOT_PATH } /api` , // Backend URL
88 withCredentials : true , // Allow credentials (cookies) to be sent
99 headers : {
1010 'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change 22
33# Run backend
44cd crossbar_llm/backend
5- uvicorn main:app --host 0.0.0.0 --port 8000 --root-path " $CROSSBAR_LLM_ROOT_PATH /api" &
5+ uvicorn main:app --host 0.0.0.0 --port 8000 --root-path " $REACT_APP_CROSSBAR_LLM_ROOT_PATH /api" &
66
77# Run frontend
88cd ../..
You can’t perform that action at this time.
0 commit comments