mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 18:07:52 +01:00
The product, its assistant, the repo, the host and every unit on the box now share one name. 638 files, ~3,000 mentions: UI copy, config, env keys (FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs, articles, the deploy workflow other repos reuse, and nine file names. - Three article slugs carried the old name and had been shared; permanent redirects keep those links alive (next.config.ts). - test-no-retired-name.sh now also forbids the old product name across the whole repo, so the rename cannot creep back through templates and examples. - ASSISTANT_STACK collapses the product and the assistant into one entry, because they are now the same name. Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki` database and role, loki.orangecat.ch (old host 308s to it; /api, /widget, /embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases. The Resend sending domain stays fleetcrown.orangecat.ch until the new domain is verified in DNS. Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Script from "next/script";
|
|
import "./globals.css";
|
|
|
|
export const metadata: Metadata = {
|
|
title: { default: "__TITLE__", template: "%s · __TITLE__" },
|
|
description: "__TITLE__",
|
|
metadataBase: new URL("https://__HOST__"),
|
|
openGraph: { siteName: "__TITLE__", type: "website" },
|
|
};
|
|
|
|
/**
|
|
* Deliberately bare: no analytics, no third-party script, no structured data
|
|
* belonging to anyone else. Everything that renders here belongs to this site.
|
|
*
|
|
* This matters more than it looks. A site served on a subdomain of a domain we
|
|
* own must carry none of our marks — a previous site inherited another
|
|
* product's header, tracking and Organization schema, and told crawlers it was
|
|
* a different company.
|
|
*/
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
{children}
|
|
|
|
{/* The Loki feedback widget.
|
|
The owner looks at their own site, points at what they do not like,
|
|
and an agent changes it — without emailing anyone. This is why the
|
|
site is maintainable by its owner rather than by us, and it is
|
|
provisioned when the site is created rather than "later".
|
|
Env-gated, so a local dev run and a fork carry no widget at all. */}
|
|
{process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN && (
|
|
<Script
|
|
src="https://loki.orangecat.ch/widget.js"
|
|
strategy="afterInteractive"
|
|
data-fc-project={process.env.NEXT_PUBLIC_FC_WIDGET_TOKEN}
|
|
/>
|
|
)}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|