From 0893e6d2f00fc3bcb435b02088378bea05d25576 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 13:24:00 +0200 Subject: [PATCH] style: Remove unnecessary comment and fix type in interface --- app/fastify-entry.ts | 4 ++-- app/pages/+config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/fastify-entry.ts b/app/fastify-entry.ts index 29f9bea..e15cfd5 100644 --- a/app/fastify-entry.ts +++ b/app/fastify-entry.ts @@ -18,13 +18,13 @@ const root = __dirname; declare global { namespace Vike { interface PageContext { - cookies: Partial<{ + cookies: { consent: { analytics: boolean; customization: boolean; }; theme: Theme; - }>; + }; } } } diff --git a/app/pages/+config.ts b/app/pages/+config.ts index 1cea509..13565e5 100644 --- a/app/pages/+config.ts +++ b/app/pages/+config.ts @@ -25,7 +25,7 @@ export default { image: "/og.webp", - // prerender: true, + passToClient: ["cookies"], prefetchStaticAssets: "hover", extends: vikeReact,