Was linking to /news?category=Featured which silently fell back to the unfiltered /news listing because "Featured" isn't in CATEGORIES and the filter is tag-based, not category-column-based. Adds getLegacyFeaturedArticles() that mirrors FeaturedBento's query (category ILIKE 'featured', featured-flag-first sort) at limit 200, and a thin /news/featured route that reuses NewsPageClient.
23 lines
795 B
TypeScript
23 lines
795 B
TypeScript
import type { Metadata } from "next";
|
|
import { Suspense } from "react";
|
|
import NewsPageClient from "../NewsPageClient";
|
|
import { getLegacyFeaturedArticles } from "@/lib/articles/legacy-source";
|
|
|
|
export const revalidate = 1800;
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Featured Stories — Broadcast Beat",
|
|
description:
|
|
"Editorial picks from the Broadcast Beat staff — the most important industry stories, hand-selected from across broadcast engineering, IP/cloud workflows, streaming, AI, and live production.",
|
|
alternates: { canonical: "/news/featured" },
|
|
};
|
|
|
|
export default async function FeaturedNewsPage() {
|
|
const articles = await getLegacyFeaturedArticles(200);
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<NewsPageClient articles={articles} />
|
|
</Suspense>
|
|
);
|
|
}
|