Le niveau `cloud` etait redondant : il ne reste qu'une seule application. - backend/cloud/* -> backend/*, frontend/cloud/* -> frontend/* - workspaces npm : frontend et backend ; reference tsconfig ./backend - extends tsconfig.base corrige (../ au lieu de ../../) - docker-compose : APP_DIR backend/frontend, montage ./backend/migrations - deploy.yml : reconstruit aussi l'image migrate - chemins mis a jour dans les docs, le Makefile et docker/README.md
20 lines
491 B
TypeScript
20 lines
491 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: 5174,
|
|
// En developpement, l'API tourne sur 3001 ; en production nginx
|
|
// intercepte /api/ lui-meme. Meme chemin des deux cotes.
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://127.0.0.1:3101",
|
|
changeOrigin: false,
|
|
},
|
|
},
|
|
},
|
|
});
|