Files
GenExam-IA/frontend/vite.config.js
T
Mireya Cueto Garrido 944482b96c Support HTTPS deployment under /generadorexamenesllm behind reverse proxy.
This updates frontend base-path routing, same-origin API proxying, and deployment defaults/docs so the app works correctly through the Sinbad2 Apache ProxyPass setup.
2026-06-02 13:10:52 +02:00

17 lines
339 B
JavaScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
const base = env.VITE_APP_BASE_PATH || "/";
return {
base,
plugins: [react()],
server: {
host: true,
port: 8075,
},
};
});