turned template into create cli

This commit is contained in:
2025-07-25 01:08:04 +02:00
parent 1b71b472a7
commit 028f287067
85 changed files with 3774 additions and 3292 deletions

View File

@@ -0,0 +1,18 @@
import { sanityFetch } from "./live";
export async function fetchSettings(prop?: string | undefined) {
const settingsFetch = await sanityFetch({
query: `*[_type == "settings"][0]{
${
prop ||
`title,
longTitle,
footer,
description,
logo,
favicon`
}
}`,
});
return settingsFetch.data;
}