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
19 lines
565 B
TypeScript
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;
|