This commit is contained in:
Kismet Hasanaj
2026-05-02 20:07:02 +02:00
parent ce8672e283
commit 34dc9aec52
9428 changed files with 1733330 additions and 0 deletions
@@ -0,0 +1,35 @@
/**
* Parse the page segment config.
* @param data - The data to parse.
* @param route - The route of the page.
* @returns The parsed page segment config.
*/
export declare function parsePagesSegmentConfig(data: unknown, route: string): PagesSegmentConfig;
export type PagesSegmentConfigConfig = {
/**
* The maximum duration for the page render.
*/
maxDuration?: number;
/**
* The runtime to use for the page.
*/
runtime?: 'edge' | 'experimental-edge' | 'nodejs';
/**
* The preferred region for the page.
*/
regions?: string[];
};
export type PagesSegmentConfig = {
/**
* The runtime to use for the page.
*/
runtime?: 'edge' | 'experimental-edge' | 'nodejs';
/**
* The maximum duration for the page render.
*/
maxDuration?: number;
/**
* The exported config object for the page.
*/
config?: PagesSegmentConfigConfig;
};