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

@ -8,8 +8,8 @@
"build": "tsc -b && vite build", "build": "tsc -b && vite build",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview", "preview": "vite preview",
"start-dev": "cross-env NODE_ENV=dev vite", "start-dev": "vite --mode dev",
"start-test": "cross-env NODE_ENV=test vite", "start-test": "vite --mode test",
"watch:openapi": "node fetch-openapi.js" "watch:openapi": "node fetch-openapi.js"
}, },
"dependencies": { "dependencies": {

View File

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