1fe5ffee8d
Server-side / caching refactor (Grok): - New RPC get_public_stops_for_brand (migration 148) for public storefront stops - New server action getPublicStopsForBrand with revalidate=300 + tags - Add revalidateTag invalidation to createStopsBatch + publishStop - Convert /tuxedo/stops and /indian-river-direct/stops to Server Components - Extract TuxedoStopsList + IndianRiverStopsList as client islands (GSAP only) - Removes supabase-js from browser bundle on those routes - Both pages now statically prerendered (5m ISR) Parallel agent changes also staged: - AI provider model list refresh (claude-sonnet-4-5, etc.) - ESLint directive patches for react-hooks/set-state-in-effect - Admin + storefront + checkout + cart updates - New admin_create_stop_rpcs migration (147) - Misc fixes across ~90 files Build verified: typecheck clean, lint clean on new files, production build succeeds.
25 lines
738 B
TypeScript
25 lines
738 B
TypeScript
import { getPublicStopsForBrand } from "@/actions/stops";
|
|
import { getBrandSettingsPublic } from "@/actions/brand-settings";
|
|
import TuxedoStopsList from "./TuxedoStopsList";
|
|
|
|
// Page-level cache — matches the 5-min revalidate in getPublicStopsForBrand.
|
|
// Mutations call revalidateTag("stops") to invalidate.
|
|
export const revalidate = 300;
|
|
|
|
export default async function TuxedoStopsPage() {
|
|
const [stops, settings] = await Promise.all([
|
|
getPublicStopsForBrand("tuxedo"),
|
|
getBrandSettingsPublic("tuxedo"),
|
|
]);
|
|
|
|
const brandName = settings.success ? settings.settings?.brand_name : null;
|
|
|
|
return (
|
|
<TuxedoStopsList
|
|
stops={stops}
|
|
brandName={brandName ?? "Tuxedo Corn"}
|
|
brandSlug="tuxedo"
|
|
/>
|
|
);
|
|
}
|