mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Move public deployment from app.radicle.xyz to radicle.network
This commit is contained in:
committed by
Lorenz Leutgeb
parent
1003b165e5
commit
7e725f3bdf
+2
-2
@@ -5,7 +5,7 @@ preview card images for social media embeds.
|
||||
|
||||
## How it works
|
||||
|
||||
`app.radicle.xyz` is a plain static SPA. A Cloudflare Redirect Rule
|
||||
`radicle.network` is a plain static SPA. A Cloudflare Redirect Rule
|
||||
302s social media crawlers to `open-graph.radicle.network`, which
|
||||
returns HTML with OG tags. The `og:image` points to `/cards/...` on
|
||||
the same domain, where the worker renders PNG cards via Satori + resvg-wasm.
|
||||
@@ -26,7 +26,7 @@ cards degrade: specific item -> repo -> node -> home.
|
||||
**Rules > Redirect Rules** on the `radicle.xyz` zone:
|
||||
|
||||
```
|
||||
(http.host eq "app.radicle.xyz") and (
|
||||
(http.host eq "radicle.network") and (
|
||||
(http.user_agent contains "Twitterbot") or
|
||||
(http.user_agent contains "facebookexternalhit") or
|
||||
(http.user_agent contains "Facebot") or
|
||||
|
||||
@@ -2185,7 +2185,7 @@ async function handleOgHtml(request, url, env) {
|
||||
return new Response("Not found", { status: 404 });
|
||||
}
|
||||
|
||||
const appBase = env.APP_BASE || "https://app.radicle.xyz";
|
||||
const appBase = env.APP_BASE || "https://radicle.network";
|
||||
const appHost = new URL(appBase).hostname;
|
||||
const hostParam = route.type === "home" ? `?host=${appHost}` : "";
|
||||
const ogImageUrl = escapeHtml(
|
||||
|
||||
@@ -7,7 +7,7 @@ routes = [
|
||||
]
|
||||
|
||||
[vars]
|
||||
APP_BASE = "https://app.radicle.xyz"
|
||||
APP_BASE = "https://radicle.network"
|
||||
|
||||
[[rules]]
|
||||
type = "CompiledWasm"
|
||||
|
||||
Reference in New Issue
Block a user