fixed bug with logistics

This commit is contained in:
GotthardG
2024-12-11 10:10:43 +01:00
parent 5488df4318
commit 9160339961
14 changed files with 4497 additions and 5 deletions

21
logistics/vite.config.ts Normal file
View File

@ -0,0 +1,21 @@
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
console.log(`Active mode: ${mode}`);
console.log('Environment variable loaded:', env);
return {
plugins: [react()],
server: {
https: {
key: env.VITE_SSL_KEY_PATH,
cert: env.VITE_SSL_CERT_PATH,
},
host: true,
port: 3000,
},
};
});