fixed bug with logistics
This commit is contained in:
21
logistics/vite.config.ts
Normal file
21
logistics/vite.config.ts
Normal 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,
|
||||
},
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user