Add manual salary entry
All checks were successful
Deploy to VPS / test (push) Successful in 1m50s
Deploy to VPS / deploy (push) Successful in 1m37s

This commit is contained in:
Carlos Escalante
2026-07-14 18:25:13 -06:00
parent 47cb1826a8
commit 17a0c63abe
4 changed files with 200 additions and 3 deletions

View File

@@ -3,6 +3,11 @@ import react from "@vitejs/plugin-react-oxc";
import tailwindcss from "@tailwindcss/vite";
import path from "path";
// Browser requests arrive at Vite, which then proxies them to the backend.
// Locally the backend is published on the host; Docker Compose supplies the
// service hostname instead (see docker-compose.yml).
const backendUrl = process.env.BACKEND_URL ?? "http://localhost:8001";
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
@@ -19,7 +24,7 @@ export default defineConfig({
},
// All other API calls → Python backend
"/api": {
target: "http://localhost:8001",
target: backendUrl,
changeOrigin: true,
},
},