20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
host: true,
|
|
port: 5175,
|
|
// En developpement, l'API CRM tourne sur 3002 ; en production nginx
|
|
// intercepte /api/ lui-meme. Meme chemin des deux cotes.
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://127.0.0.1:3202",
|
|
changeOrigin: false,
|
|
},
|
|
},
|
|
},
|
|
});
|