commit before hard reset to change connection

This commit is contained in:
2026-02-15 23:15:56 +01:00
parent be5bd2b2bf
commit af9d69cc78
6 changed files with 383 additions and 154 deletions

View File

@@ -2,6 +2,45 @@ import path from 'path';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, '.', '');
return {
server: {
port: 3000,
host: '0.0.0.0',
// --- AJOUT DU PROXY ICI ---
proxy: {
'/api/user-auth': {
target: 'https://app.nocodebackend.com',
changeOrigin: true,
secure: false,
cookieDomainRewrite: "localhost",
},
'/api/data': {
target: 'https://app.nocodebackend.com',
changeOrigin: true,
secure: false,
cookieDomainRewrite: "localhost",
}
}
},
plugins: [react()],
define: {
'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
},
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
}
};
});
/*mport path from 'path';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, '.', '');
return {
@@ -21,3 +60,4 @@ export default defineConfig(({ mode }) => {
}
};
});
*/