mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: fix panel persist over server rendering, etc
This commit is contained in:
+1
-1
@@ -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
@@ -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>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user