From 9b2c63d92ff77ebce0f90a7be05437504422bf45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 11 Feb 2023 23:37:12 +0100 Subject: feat: Render localized content from sanity --- src/lib/sanity-client.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/lib/sanity-client.ts (limited to 'src/lib/sanity-client.ts') diff --git a/src/lib/sanity-client.ts b/src/lib/sanity-client.ts new file mode 100644 index 0000000..70be363 --- /dev/null +++ b/src/lib/sanity-client.ts @@ -0,0 +1,9 @@ +import { env } from "$env/dynamic/private"; +import sanityClient from "@sanity/client"; + +export const sanity = sanityClient({ + projectId: env.SANITY_STUDIO_API_PROJECT_ID, + dataset: env.SANITY_STUDIO_API_DATASET, + apiVersion: "2022-03-24", + useCdn: true, +}); \ No newline at end of file -- cgit v1.3