commit before hard reset to change connection
This commit is contained in:
@@ -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 }) => {
|
||||
}
|
||||
};
|
||||
});
|
||||
*/
|
||||
Reference in New Issue
Block a user