fixed bug with logistics
This commit is contained in:
@ -91,8 +91,12 @@ const LogisticsView: React.FC = () => {
|
||||
// Reference to the audio element
|
||||
const audioRef = useRef<HTMLAudioElement | null>(null);
|
||||
|
||||
OpenAPI.BASE = import.meta.env.VITE_OPENAPI_BASE || 'https://127.0.0.1:8000';
|
||||
console.log('OpenAPI Base URL:', OpenAPI.BASE);
|
||||
useEffect(() => {
|
||||
const isTestEnv = import.meta.env.MODE === 'test';
|
||||
OpenAPI.BASE = isTestEnv
|
||||
? import.meta.env.VITE_OPENAPI_BASE_TEST
|
||||
: import.meta.env.VITE_OPENAPI_BASE_DEV;
|
||||
}, []);
|
||||
|
||||
const fetchDewarsAndSlots = async () => {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user