PR — Ouverture automatique / create-pr (push) Failing after 1s
Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs. Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
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,
|
|
},
|
|
},
|
|
},
|
|
});
|