Files
solon/next.config.js
T
CatoandClaude 8c27ece452 feat(places): every place opens on its photograph, and shares with it (#531)
- places:photos finds any place on Wikidata by its world entry or by an
  identifier whose scheme names a Wikidata property (ISO 3166-1/-2, FSO
  municipality, US FIPS), and chooses one free photograph from Commons:
  the original of its Wikivoyage banner, its image, aerial or night view,
  else a panorama as a strip. A person can replace any choice in one line.
- A full-screen hero on country, territory and subdivision pages: name,
  kind, capital, population, area, and the photo's author and licence.
- A share card for every place (/api/og/place) with its photograph.
- /credits lists every place photograph; the world index is a wall of
  photographs.


Claude-Session: https://claude.ai/code/session_019MDtmuJdjaMYdbLjujoC3k

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 21:12:42 +01:00

31 lines
1.2 KiB
JavaScript

const createNextIntlPlugin = require("next-intl/plugin");
// Points next-intl at the request config that picks each request's language
// and loads its messages (English underneath, the translation on top).
const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts");
/** @type {import('next').NextConfig} */
const nextConfig = {
// Standalone output is required by the self-hosted Hetzner deploy
// (scripts/hetzner/deploy.sh stages the standalone build, same as every
// sibling app on the box).
output: "standalone",
// Member pictures come from OrangeCat's storage (the identity root keeps
// the profile; Solon only shows it). Places' photographs come from
// Wikimedia Commons (`pnpm run places:photos`, each with its licence).
images: {
remotePatterns: [
{
protocol: "https",
hostname: "supabase.orangecat.ch",
pathname: "/storage/v1/object/public/**",
},
{ protocol: "https", hostname: "orangecat.ch" },
{ protocol: "https", hostname: "upload.wikimedia.org", pathname: "/wikipedia/commons/**" },
{ protocol: "https", hostname: "thumb.wikimedia.org", pathname: "/wikipedia/commons/**" },
],
},
};
module.exports = withNextIntl(nextConfig);