fixed bug with spreadsheet import
This commit is contained in:
@ -1,20 +1,22 @@
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
// Charge les variables du .env correspondant au mode
|
||||
const env = loadEnv(mode, process.cwd(), '');
|
||||
|
||||
console.log(`Active mode: ${mode}`);
|
||||
console.log('Environment variable loaded:', env);
|
||||
|
||||
return {
|
||||
plugins: [
|
||||
react(),
|
||||
],
|
||||
plugins: [react()],
|
||||
server: {
|
||||
https: {
|
||||
key: env.VITE_SSL_KEY_PATH,
|
||||
cert: env.VITE_SSL_CERT_PATH,
|
||||
},
|
||||
host: true, // This allows hosting on network interfaces
|
||||
port: 5173 // Optional: Specify a custom port (default is 5173)
|
||||
}}
|
||||
host: true,
|
||||
port: 5173,
|
||||
},
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user