fixing visual editing?

This commit is contained in:
2024-10-30 03:23:49 +01:00
parent 9ea98978ea
commit e55ba609da

View File

@@ -1,13 +1,11 @@
import type { Home } from "@/sanity/sanity.types"; import type { Home } from "@/sanity/sanity.types";
import { sanityFetch } from "@/sanity/client"; import { sanityFetch } from "@/sanity/client";
import Link from "next/link"; import Link from "next/link";
const HOME_QUERY = `*[_type == "home"]`; const HOME_QUERY = `*[_type == "home"]`;
export default async function IndexPage() { export default async function IndexPage() {
const result = await sanityFetch({ query: HOME_QUERY, stega: false }); const result = await sanityFetch({ query: HOME_QUERY });
const home: Home | null = result.data.length > 0 ? result.data[0] : null; const home: Home | null = result.data.length > 0 ? result.data[0] : null;
return ( return (