mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-07 07:26:53 +00:00
feat: add support for page URL overrides
This commit is contained in:
12
lib/types.ts
12
lib/types.ts
@@ -54,6 +54,18 @@ export interface CanonicalPageMap {
|
||||
[canonicalPageId: string]: string
|
||||
}
|
||||
|
||||
export interface PageUrlOverridesMap {
|
||||
// maps from a notion page id to the URL path the page should be resolved to
|
||||
// (this overrides the built-in URL path generation for these pages)
|
||||
[pageId: string]: string
|
||||
}
|
||||
|
||||
export interface PageUrlOverridesInverseMap {
|
||||
// maps from a URL path to the notion page id the page should be resolved to
|
||||
// (this overrides the built-in URL path generation for these pages)
|
||||
[pageId: string]: string
|
||||
}
|
||||
|
||||
export interface PreviewImage {
|
||||
url: string
|
||||
originalWidth: number
|
||||
|
||||
Reference in New Issue
Block a user