SPB Git

spb/qwhpi Public

QHPI — Quebec Housing Price Index: quality-adjusted, hierarchically pooled housing price indexes.

Python 63.9% TypeScript 25.4% CSS 5.5% TeX 3.5% SQL 0.8% Makefile 0.5% Dockerfile 0.5%
1.0 KB · 28 lines typescript
Raw Blame History
1/**2 * =============================================================================3 * QWHPI — Quebec Weekly Housing Price Index4 * Author  : Simon-Pierre Boucher5 * Contact : contact@spboucher.ai6 * File    : web/next.config.ts7 * Purpose : Next.js configuration for the QWHPI dashboard.8 * =============================================================================9 */10import type { NextConfig } from "next";1112const nextConfig: NextConfig = {13  reactStrictMode: true,14  // Single-domain deployments: the dashboard origin proxies API routes to the15  // local FastAPI process (set NEXT_PUBLIC_API_URL="" at build time).16  async rewrites() {17    const api = process.env.QWHPI_API_INTERNAL ?? "http://127.0.0.1:8080";18    return [19      { source: "/v1/:path*", destination: `${api}/v1/:path*` },20      { source: "/docs", destination: `${api}/docs` },21      { source: "/openapi.json", destination: `${api}/openapi.json` },22      { source: "/health", destination: `${api}/health` },23    ];24  },25};2627export default nextConfig;28