From c3ba0cb7b4c7a1d78f2dd525e7d110c1400c3099 Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Wed, 31 Jan 2024 19:59:22 +0800 Subject: [PATCH] chore: remove page key --- packages/core/src/page/createPage.ts | 2 -- packages/shared/src/types/page.ts | 9 --------- 2 files changed, 11 deletions(-) diff --git a/packages/core/src/page/createPage.ts b/packages/core/src/page/createPage.ts index d45d9dfbba..37a76521d8 100644 --- a/packages/core/src/page/createPage.ts +++ b/packages/core/src/page/createPage.ts @@ -99,7 +99,6 @@ export const createPage = async ( const page: Page = { // page data data: { - key, path, title, lang, @@ -108,7 +107,6 @@ export const createPage = async ( }, // base fields - key, path, title, lang, diff --git a/packages/shared/src/types/page.ts b/packages/shared/src/types/page.ts index 41cffab7d8..4c3d315a8f 100644 --- a/packages/shared/src/types/page.ts +++ b/packages/shared/src/types/page.ts @@ -7,15 +7,6 @@ import type { HeadConfig } from './head.js' export interface PageBase< ExtraPageFrontmatter extends Record = Record, > { - /** - * Identifier of the page - * - * Will also be used as the component name - * - * @example 'v-foobar' - */ - key: string - /** * Route path of the page *