feat: fix panel persist over server rendering, etc

This commit is contained in:
2024-02-22 23:05:02 +07:00
parent 2c9faa332a
commit efe51a9b5e
27 changed files with 962 additions and 150 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import type { Config } from "vike/types";
export default {
clientRouting: true,
passToClient: ["routeParams"],
passToClient: ["routeParams", "cookies"],
meta: {
title: {
env: { server: true, client: true },
+4 -1
View File
@@ -1,4 +1,5 @@
//
import type { Request } from "express";
declare global {
namespace Vike {
interface PageContext {
@@ -12,6 +13,8 @@ declare global {
description?: string;
};
abortReason?: string;
req: Request;
cookies: Record<string, string>;
}
}
}