Sites per domain with two skins (PhotoReport, ShootYourMove) in apps/site (Next.js); public, unlisted and private galleries with watermarked photos; products, cart, orders with VIES reverse charge; the organization's own Stripe Checkout and signed webhooks; bought files rendered from the original with edits and IPTC, emailed; Vendas module in the app. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
18 lines
527 B
TypeScript
18 lines
527 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,
|
|
async rewrites() {
|
|
return [{ source: "/v1/:path*", destination: `${api}/v1/:path*` }];
|
|
},
|
|
};
|
|
|
|
export default config;
|