chore: purge all rocket.new references from source
- Replace img.rocket.new mock URLs in authors/[slug] + FeaturedBento with /assets/images/article-placeholder.svg (live DB data drives these pages now; the static maps are fallback only). - Replace broadcastb5322.builtwithrocket.new with broadcastbeat.com in admin API routes, news detail, forum layout, and the 4 Supabase edge functions that build outbound email links. - Swap rocket-hosted JSON-LD logo URL in root layout for the local /assets/images/logo.png we already ship. - Drop img.rocket.new from the Next.js image-hosts allowlist; add supabase.onsethost.com so storage proxy URLs can render. The DB has had zero rocket.new image refs for weeks; this finishes the job in the codebase so no page on broadcastbeat.com can render a rocket-hosted asset anymore.
This commit is contained in:
@@ -34,7 +34,7 @@ serve(async (req) => {
|
||||
throw new Error("RESEND_API_KEY is not set");
|
||||
}
|
||||
|
||||
const siteUrl = "https://broadcastb5322.builtwithrocket.new";
|
||||
const siteUrl = "https://broadcastbeat.com";
|
||||
const articleUrl = article.slug
|
||||
? `${siteUrl}/articles/${article.slug}`
|
||||
: article.wp_slug
|
||||
|
||||
@@ -20,7 +20,7 @@ serve(async (req) => {
|
||||
throw new Error("RESEND_API_KEY is not set");
|
||||
}
|
||||
|
||||
const acceptUrl = `${siteUrl || "https://broadcastb5322.builtwithrocket.new"}/invite/accept?token=${token}`;
|
||||
const acceptUrl = `${siteUrl || "https://broadcastbeat.com"}/invite/accept?token=${token}`;
|
||||
|
||||
const roleLabel = role === "editor" ? "Editor" : role === "admin" ? "Administrator" : "Contributor";
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ serve(async (req) => {
|
||||
<p style="margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:#888;">Your selected topics:</p>
|
||||
${topicsList}
|
||||
<div style="margin:28px 0;border-top:1px solid #2a2a2a;"></div>
|
||||
<a href="https://broadcastb5322.builtwithrocket.new/home-page" style="display:inline-block;background-color:#cc0000;color:#ffffff;font-size:13px;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;text-decoration:none;padding:10px 24px;border-radius:2px;">
|
||||
<a href="https://broadcastbeat.com/home-page" style="display:inline-block;background-color:#cc0000;color:#ffffff;font-size:13px;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;text-decoration:none;padding:10px 24px;border-radius:2px;">
|
||||
Read Latest News →
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -185,7 +185,7 @@ function buildDigestHtml(params: {
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 8px;">
|
||||
<tr>
|
||||
<td style="text-align: center; padding: 24px 0 0 0; border-top: 1px solid #1e1e1e;">
|
||||
<a href="https://broadcastb5322.builtwithrocket.new/forum" style="display: inline-block; background-color: #3b82f6; color: #ffffff; font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; padding: 12px 28px; border-radius: 2px;">Visit the Forum</a>
|
||||
<a href="https://broadcastbeat.com/forum" style="display: inline-block; background-color: #3b82f6; color: #ffffff; font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; padding: 12px 28px; border-radius: 2px;">Visit the Forum</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -196,9 +196,9 @@ function buildDigestHtml(params: {
|
||||
<tr>
|
||||
<td style="padding: 24px 0; text-align: center;">
|
||||
<p style="font-family: Arial, sans-serif; font-size: 11px; color: #444; margin: 0 0 8px 0;">You're receiving this because you opted in to the weekly digest.</p>
|
||||
<a href="https://broadcastb5322.builtwithrocket.new/account" style="font-family: Arial, sans-serif; font-size: 11px; color: #3b82f6; text-decoration: none;">Manage email preferences</a>
|
||||
<a href="https://broadcastbeat.com/account" style="font-family: Arial, sans-serif; font-size: 11px; color: #3b82f6; text-decoration: none;">Manage email preferences</a>
|
||||
<span style="color: #333; margin: 0 8px;">·</span>
|
||||
<a href="https://broadcastb5322.builtwithrocket.new" style="font-family: Arial, sans-serif; font-size: 11px; color: #444; text-decoration: none;">BroadcastBeat</a>
|
||||
<a href="https://broadcastbeat.com" style="font-family: Arial, sans-serif; font-size: 11px; color: #444; text-decoration: none;">BroadcastBeat</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -274,7 +274,7 @@ serve(async (req) => {
|
||||
const replies = (repliesRaw ?? []).map((r: any) => ({
|
||||
thread_title: r.forum_threads?.title ?? "Thread",
|
||||
reply_body: r.body ?? "",
|
||||
link: `https://broadcastb5322.builtwithrocket.new/forum/thread/${r.thread_id}`,
|
||||
link: `https://broadcastbeat.com/forum/thread/${r.thread_id}`,
|
||||
created_at: r.created_at,
|
||||
}));
|
||||
|
||||
@@ -301,7 +301,7 @@ serve(async (req) => {
|
||||
const key = v.target_id;
|
||||
const title = (v as any).forum_threads?.title ?? "Thread";
|
||||
if (!upvoteMap.has(key)) {
|
||||
upvoteMap.set(key, { target_type: "thread", title, link: `https://broadcastb5322.builtwithrocket.new/forum/thread/${v.target_id}`, count: 0 });
|
||||
upvoteMap.set(key, { target_type: "thread", title, link: `https://broadcastbeat.com/forum/thread/${v.target_id}`, count: 0 });
|
||||
}
|
||||
upvoteMap.get(key)!.count++;
|
||||
}
|
||||
@@ -310,7 +310,7 @@ serve(async (req) => {
|
||||
const threadId = (v as any).forum_replies?.thread_id;
|
||||
const title = (v as any).forum_replies?.forum_threads?.title ?? "Reply";
|
||||
if (!upvoteMap.has(key)) {
|
||||
upvoteMap.set(key, { target_type: "reply", title, link: `https://broadcastb5322.builtwithrocket.new/forum/thread/${threadId}`, count: 0 });
|
||||
upvoteMap.set(key, { target_type: "reply", title, link: `https://broadcastbeat.com/forum/thread/${threadId}`, count: 0 });
|
||||
}
|
||||
upvoteMap.get(key)!.count++;
|
||||
}
|
||||
@@ -329,7 +329,7 @@ serve(async (req) => {
|
||||
const mentions = (mentionsRaw ?? []).map((m: any) => ({
|
||||
thread_title: m.body ?? m.title ?? "Thread",
|
||||
actor_name: m.actor_name ?? "Someone",
|
||||
link: m.link ?? "https://broadcastb5322.builtwithrocket.new/forum",
|
||||
link: m.link ?? "https://broadcastbeat.com/forum",
|
||||
created_at: m.created_at,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user