fixed bug with logistics
This commit is contained in:
parent
9160339961
commit
c3b24c213a
@ -91,8 +91,12 @@ const LogisticsView: React.FC = () => {
|
|||||||
// Reference to the audio element
|
// Reference to the audio element
|
||||||
const audioRef = useRef<HTMLAudioElement | null>(null);
|
const audioRef = useRef<HTMLAudioElement | null>(null);
|
||||||
|
|
||||||
OpenAPI.BASE = import.meta.env.VITE_OPENAPI_BASE || 'https://127.0.0.1:8000';
|
useEffect(() => {
|
||||||
console.log('OpenAPI Base URL:', OpenAPI.BASE);
|
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 () => {
|
const fetchDewarsAndSlots = async () => {
|
||||||
try {
|
try {
|
||||||
|
@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
key: env.VITE_SSL_KEY_PATH,
|
key: env.VITE_SSL_KEY_PATH,
|
||||||
cert: env.VITE_SSL_CERT_PATH,
|
cert: env.VITE_SSL_CERT_PATH,
|
||||||
},
|
},
|
||||||
host: true,
|
host: '0.0.0.0',
|
||||||
port: 3000,
|
port: 3000,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user