- Admin "Híres emberek": birth data, one photo (S3: DigitalOcean Spaces in production, RustFS in development), a face point that every crop keeps in view, publishing, and a detailed portrait written with its own `celebrity` prompt (third person, by name, from the chart alone). - The photo is stored once (upright JPEG, at most 2000 px, no metadata); next/image makes the sizes from it, so Cloudflare can cache those. - Public list and pages (/hires-emberek), in the sitemap, with a share image showing the face and the chart. - Share images: the wheel's glyphs and numbers are drawn with the card's fonts (inside the SVG image they came out as boxes, on every card). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
24 lines
878 B
TypeScript
24 lines
878 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const config: NextConfig = {
|
|
// Small self-contained server for the container image.
|
|
output: "standalone",
|
|
poweredByHeader: false,
|
|
// The fonts of the share preview images are read from disk at run time.
|
|
outputFileTracingIncludes: {
|
|
"/s/[slug]/kep/[file]": ["./src/assets/og/*.ttf"],
|
|
"/kep/fooldal.png": ["./src/assets/og/*.ttf"],
|
|
"/hires-emberek/[slug]/kep/[file]": ["./src/assets/og/*.ttf"],
|
|
},
|
|
images: {
|
|
// Only the famous people's photos (served by the backend through the
|
|
// /api/v1 proxy, one stored version each) go through the optimizer.
|
|
localPatterns: [{ pathname: "/api/v1/public/photos/**", search: "" }],
|
|
formats: ["image/webp"],
|
|
// The photo's address changes with every upload: the sized versions may be kept long.
|
|
minimumCacheTTL: 2678400,
|
|
},
|
|
};
|
|
|
|
export default config;
|