Open source CapCut alternative.
TypeScript
chore(site): point site metadata and legacy references at donkeycut.com
David Leafcd86d5740f
diff --git a/README.md b/README.mdindex 949dd413..6939a987 100644--- a/README.md+++ b/README.md@@ -10,7 +10,7 @@<a href="https://github.com/DonkeyUseCorp/Donkey/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/DonkeyUseCorp/Donkey?label=release&color=EC7868" /></a><a href="LICENSE"><img alt="License: Apache 2.0" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" /></a><img alt="Platform: macOS" src="https://img.shields.io/badge/Platform-macOS-black.svg" />- <a href="https://donkeyuse.com/donkeyvision"><img alt="Vision API" src="https://img.shields.io/badge/Vision-API-EC7868.svg" /></a>+ <a href="https://donkeycut.com/donkeyvision"><img alt="Vision API" src="https://img.shields.io/badge/Vision-API-EC7868.svg" /></a></p>Donkey is two things in one repository:@@ -97,7 +97,7 @@ Pass a natural-language `instruction` like `click the play button` and it return### Example```bash-curl "https://donkeyuse.com/api/vision" \+curl "https://donkeycut.com/api/vision" \-H "Authorization: Bearer $DONKEY_API_KEY" \-H "Content-Type: application/json" \-d '{@@ -124,7 +124,7 @@ curl "https://donkeyuse.com/api/vision" \}```-A warm parse takes about **0.7s** server-side. See [donkeyuse.com/donkeyvision](https://donkeyuse.com/donkeyvision) for the full reference and to get a key. The parsing model and its latency notes live in [`docs/guides/donkey-vision.md`](docs/guides/donkey-vision.md) and [`vision/`](vision/).+A warm parse takes about **0.7s** server-side. See [donkeycut.com/donkeyvision](https://donkeycut.com/donkeyvision) for the full reference and to get a key. The parsing model and its latency notes live in [`docs/guides/donkey-vision.md`](docs/guides/donkey-vision.md) and [`vision/`](vision/).---diff --git a/site/package.json b/site/package.jsonindex 175561b6..01ee3ddc 100644--- a/site/package.json+++ b/site/package.json@@ -2,7 +2,7 @@"name": "site","version": "0.1.0","private": true,- "homepage": "https://donkeyuse.com",+ "homepage": "https://donkeycut.com","license": "Apache-2.0","scripts": {"dev": "next dev",diff --git a/site/public/appcast.xml b/site/public/appcast.xmlindex eae7bd85..d0430c94 100644--- a/site/public/appcast.xml+++ b/site/public/appcast.xml@@ -2,7 +2,7 @@<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"><channel><title>Donkey Updates</title>- <link>https://donkeyuse.com/appcast.xml</link>+ <link>https://donkeycut.com/appcast.xml</link><description>Donkey macOS app updates.</description><language>en</language><item>diff --git a/site/src/app/cut/sitemap.ts b/site/src/app/cut/sitemap.tsindex 58a24c19..8475f995 100644--- a/site/src/app/cut/sitemap.ts+++ b/site/src/app/cut/sitemap.ts@@ -2,9 +2,8 @@ import type { MetadataRoute } from "next";import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";-// Served at donkeycut.com/sitemap.xml via the proxy rewrite (src/proxy.ts);-// the apex keeps its own sitemap at src/app/sitemap.ts. The legal pages are-// canonical on this host, since they describe Donkey Cut.+// Served at donkeycut.com/sitemap.xml via the proxy rewrite (src/proxy.ts).+// The legal pages are canonical on this host, since they describe Donkey Cut.export default function sitemap(): MetadataRoute.Sitemap {return [{@@ -17,6 +16,11 @@ export default function sitemap(): MetadataRoute.Sitemap {changeFrequency: "monthly",priority: 0.8,},+ {+ url: `${DONKEYCUT_CANONICAL}/donkeyvision`,+ changeFrequency: "monthly",+ priority: 0.6,+ },{url: `${DONKEYCUT_CANONICAL}/privacy`,changeFrequency: "yearly",diff --git a/site/src/app/layout.tsx b/site/src/app/layout.tsxindex 0597325f..50c27d68 100644--- a/site/src/app/layout.tsx+++ b/site/src/app/layout.tsx@@ -16,8 +16,8 @@ const geistMono = Geist_Mono({});export const metadata: Metadata = {- title: "Donkey",- description: "Donkey gets work done on your Mac while you stay in control.",+ title: "Donkey Cut",+ description: "A video editor that does all its work on your Mac.",};export default function RootLayout({diff --git a/site/src/cut/lib/hosts.ts b/site/src/cut/lib/hosts.tsindex 90bde041..eddc7200 100644--- a/site/src/cut/lib/hosts.ts+++ b/site/src/cut/lib/hosts.ts@@ -1,8 +1,7 @@// Cut is served from one production host, mapped by src/proxy.ts onto the// real routes under /cut: donkeycut.com — marketing landing at "/", the app-// at "/app/…" (rewritten to /cut/app/…). donkeyuse.com and old-// cut.donkeyuse.com links are redirected to donkeycut.com at the edge-// (Cloudflare) and never reach this app.+// at "/app/…" (rewritten to /cut/app/…). Retired domains are redirected to+// donkeycut.com at the edge (Cloudflare) and never reach this app.//// Local dev is deliberately absent from the set: the proxy serves localhost// the same mapping, keeping the session cookie same-origin on the one devdiff --git a/site/src/proxy.ts b/site/src/proxy.tsindex 20dde268..dee35474 100644--- a/site/src/proxy.ts+++ b/site/src/proxy.ts@@ -13,9 +13,8 @@ import {// "/…" → "/cut/…" rewrite) — with donkeycut.com as the one production host.// The auth pages (/sign-in, /sign-up), "/install", "/donkeyvision", and the// legal pages are real root-level routes and pass through the rewrite.-// www. 308s to the apex; donkeyuse.com and old cut.donkeyuse.com links are-// redirected to donkeycut.com at the edge (Cloudflare) and never reach this-// app.+// www. 308s to the apex; retired domains redirect to donkeycut.com at the+// edge (Cloudflare) and never reach this app.//// This file must live in src/ (next to app/) and use the Next 16 `proxy` name;// a root-level middleware.ts is not loaded when the app is under src/.@@ -89,9 +88,8 @@ export function proxy(req: NextRequest) {);}- // Old direct /cut/… links (donkeyuse.com served the tree unrewritten, and- // Cloudflare forwards those paths here) canonicalize to the rewritten- // address: /cut/app/… → /app/….+ // Legacy direct /cut/… links canonicalize to the rewritten address:+ // /cut/app/… → /app/….if (underPath(pathname, "/cut")) {const url = req.nextUrl.clone();url.pathname = pathname.slice("/cut".length) || "/";