mirror of
https://github.com/abue-ammar/tinycast.git
synced 2026-10-02 08:14:38 +08:00
Deploy the Next.js export to Cloudflare as an assets-only Worker and serve it from the domain root, so `basePath` and `src/lib/asset.ts` both go away. The old GitHub Pages URL keeps working: `website/redirect/` is now a lone CNAME file, and a custom domain on a project site is what makes GitHub 301 `abue-ammar.github.io/tinycast/<path>` to `tinycast.dev/<path>` from its own edge — repo prefix stripped, path, query and fragment carried, no HTML parsed. Verified against a live project site before relying on it. Workers caps a single asset at 25 MiB and the 26.5 MiB tour video breaks it, so media that size moves to `website/media/`, out of the export, and is served from an R2 bucket behind cdn.tinycast.dev. Its own workflow mirrors the folder so a docs typo never re-uploads it. Every docs page inherited the root layout's `canonical: "/"`, which told Google the homepage was the real version of all 37 of them. Canonicals are per page now, with the trailing slash the host actually serves, and the sitemap matches. Drops the unmaintained macOS 15 Sequoia cask from the docs, the README, the issue templates and the release-notes tag filter.