spb/trouve-ka Public
Trouve-KA — moteur de recherche web indépendant, Québec-first. Crawler distribué, index OpenSearch, ranking bilingue, galerie d'images. En prod : www.trouve-ka.com
Python 76.8%
TypeScript 15.7%
SQL 3.9%
Shell 1.4%
CSS 1.3%
Dockerfile 0.7%
1/**2 * Trouve-KA — configuration Next.js (rewrites API vers le backend FastAPI)3 * Author: Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 */67/**8 * Le client fetch toujours des chemins relatifs `/api/...` : Next.js proxifie9 * vers le backend (API_URL). Ainsi tout fonctionne à l'identique en local et10 * derrière le tunnel ngrok (www.trouve-ka.com), sans URL absolues côté client.11 */12const API_URL = process.env.API_URL || "http://localhost:8080";1314/** @type {import('next').NextConfig} */15const nextConfig = {16 reactStrictMode: true,17 poweredByHeader: false,18 async rewrites() {19 return [20 {21 source: "/api/:path*",22 destination: `${API_URL}/api/:path*`,23 },24 ];25 },26};2728export default nextConfig;29