fixed bug with spreadsheet import

This commit is contained in:
GotthardG
2024-12-10 22:13:28 +01:00
parent c65ea40fcb
commit 5488df4318
2 changed files with 12 additions and 10 deletions

View File

@ -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,
},
};
});