fixed bug with logistics

This commit is contained in:
GotthardG 2024-12-11 10:57:09 +01:00
parent 9160339961
commit c3b24c213a
2 changed files with 7 additions and 3 deletions

View File

@ -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 {

View File

@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => {
key: env.VITE_SSL_KEY_PATH,
cert: env.VITE_SSL_CERT_PATH,
},
host: true,
host: '0.0.0.0',
port: 3000,
},
};