feat: Initial Nuxt app
Some checks failed
NuxtHub deployment / deploy (push) Failing after 21s
WordPress deployment / deploy (push) Successful in 8s

This commit is contained in:
2025-08-27 13:37:40 -04:00
parent 677d367226
commit 312a6f1b62
43 changed files with 40550 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
export async function useSiteOptions() {
const { data } = await useAsyncGraphqlQuery("siteOptions", {}, { graphqlCaching: { client: true } });
if (data.value?.errors?.length || !data.value?.data.siteOptions?.ccat) {
throw createError({ statusCode: 500, message: "Erreur lors de la récupération des options du site" });
}
return { ...data.value?.data.siteOptions?.ccat };
}