feat: resolve live Nostr references in blog posts and add embeds
Support naddr/nevent/note slugs for unindexed posts, cache naddr lookups, render Nostr embeds in markdown, and add a consistency check for events mirrors. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,11 +12,13 @@ interface FaqItem {
|
||||
showOnHomepage: boolean;
|
||||
}
|
||||
|
||||
// Render at request time from the live backend so the Q&A and FAQPage JSON-LD
|
||||
// are always present in the HTML for crawlers, never a build-time-empty shell.
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
async function fetchFaqs(): Promise<FaqItem[]> {
|
||||
try {
|
||||
const res = await fetch(apiUrl("/faqs?all=true"), {
|
||||
next: { revalidate: 300 },
|
||||
});
|
||||
const res = await fetch(apiUrl("/faqs?all=true"), { cache: "no-store" });
|
||||
if (!res.ok) return [];
|
||||
const data = await res.json();
|
||||
return Array.isArray(data) ? data : [];
|
||||
|
||||
Reference in New Issue
Block a user