SPB Git

Repository Public

vite.config.ts 2.1 KB 53 lines typescript

1/**2 * =============================================================================3 *                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : MacLustr Identity8 * File             : apps/web/vite.config.ts9 * Module           : web10 * Repository       : https://git.spboucher.ai/maclustr-identity11 * Project Website  : https://identity.spboucher.ai12 * Created          : 2026-12-0113 * Last Modified    : 2026-12-0114 *15 * Author           : Simon-Pierre Boucher16 * Position         : Professor of Finance17 * Institution      : Université du Québec en Outaouais (UQO)18 * Organization     : SP Boucher19 * Website          : https://spboucher.ai20 * Git              : https://git.spboucher.ai21 *22 * Preferred Contact: admin@spboucher.ai23 * Technical Contact: dev@spboucher.ai24 * Security/Admin   : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License          : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142import { defineConfig } from "vite";43import react from "@vitejs/plugin-react";4445// `pnpm dev` relaie l'API vers le service local (8860 par défaut ; MLID_API=http://localhost:8880 pour la pile d'essai e2e/stack.sh).46const api = process.env.MLID_API ?? "http://localhost:8860";4748export default defineConfig({49  plugins: [react()],50  server: { port: 5180, proxy: { "/v1": api, "/api": api, "/health": api } },51  build: { outDir: "dist", sourcemap: false, target: "es2022" },52});53
Files main
Menu

Theme