mirror of
https://github.com/34892002/edgeKey.git
synced 2026-09-07 08:53:28 +08:00
11 lines
318 B
TypeScript
11 lines
318 B
TypeScript
import type { PrismaClient } from "../../../generated/prisma/client";
|
|
import { getSiteSetting } from "../../../modules/site/service";
|
|
|
|
export type Data = ReturnType<typeof data>;
|
|
|
|
export async function data(pageContext: { prisma: PrismaClient }) {
|
|
return {
|
|
site: await getSiteSetting(pageContext.prisma),
|
|
};
|
|
}
|