feat: Deploy to Cloudflare workers
Some checks failed
Deployment / wordpress (push) Failing after 1s
Deployment / nuxt (push) Failing after 7s

This commit is contained in:
2026-01-27 19:59:34 -05:00
parent a1a8114f49
commit c6dfbeb247
12 changed files with 1139 additions and 381 deletions

View File

@@ -2,7 +2,7 @@
// Resolve Node component from URI
const { path: uri } = useRoute();
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
if (!data.value.nodeByUri) {
if (!data.value?.nodeByUri) {
throw createError({ statusCode: 404, message: `La page demandée est introuvable: ${uri}`, fatal: true });
}
const componentName = `Node${data.value.nodeByUri.__typename}`;
@@ -14,8 +14,7 @@ useNodeSeo(data.value.nodeByUri);
</script>
<template>
<div v-if="data.nodeByUri" id="page-node-from-uri">
<div v-if="data?.nodeByUri" id="page-node-from-uri">
<Component :is="componentName" v-bind="data.nodeByUri" />
<pre>{{ data.nodeByUri }}</pre>
</div>
</template>