perf : cache
This commit is contained in:
@@ -2,12 +2,12 @@ import { redirect } from "next/navigation";
|
||||
import { connection } from "next/server";
|
||||
|
||||
import { TeamImageGenerator } from "@/components/admin/team-image-generator";
|
||||
import { getActiveCatalog } from "@/lib/guides/queries";
|
||||
import { getCachedCatalogOptions } from "@/lib/cache/catalog";
|
||||
|
||||
export default async function TeamImagePage() {
|
||||
await connection();
|
||||
|
||||
const catalog = await getActiveCatalog();
|
||||
const catalog = await getCachedCatalogOptions();
|
||||
if (!catalog) redirect("/admin?sync=required");
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user