Files
photoreport/apps/site/next.config.ts
spark adb557290c
ci / rust (push) Successful in 7m1s
ci / typescript (push) Successful in 7m36s
Release hardening: no symbols, no source maps, no wasm names
Rust release profiles strip symbols and debug info (desktop: fat LTO, panic=abort), the web app and site ship
without source maps, and wasm-opt drops debug, producer and name sections from the engine.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 16:13:37 +01:00

19 lines
565 B
TypeScript

import type { NextConfig } from "next";
const api = process.env.API_URL ?? "http://localhost:3000";
/**
* Public sites (photoreport.pt, shootyourmove.com...). One build serves every domain: the API decides the
* organization and skin from the domain. Browsers reach the API through `/v1` on the site's own origin.
*/
const config: NextConfig = {
reactStrictMode: true,
poweredByHeader: false,
productionBrowserSourceMaps: false,
async rewrites() {
return [{ source: "/v1/:path*", destination: `${api}/v1/:path*` }];
},
};
export default config;