Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.7 KiB
Text
37 lines
1.7 KiB
Text
import type { WorkStore } from '../app-render/work-async-storage.external';
|
|
import type { IncrementalCache } from '../lib/incremental-cache';
|
|
import type { RenderOpts } from '../app-render/types';
|
|
import type { FetchMetric } from '../base-http';
|
|
import type { RequestLifecycleOpts } from '../base-server';
|
|
import type { AppSegmentConfig } from '../../build/segment-config/app/app-segment-config';
|
|
import type { CacheLife } from '../use-cache/cache-life';
|
|
export type WorkStoreContext = {
|
|
/**
|
|
* The page that is being rendered. This relates to the path to the page file.
|
|
*/
|
|
page: string;
|
|
isPrefetchRequest?: boolean;
|
|
nonce?: string;
|
|
renderOpts: {
|
|
cacheLifeProfiles?: {
|
|
[profile: string]: CacheLife;
|
|
};
|
|
incrementalCache?: IncrementalCache;
|
|
isOnDemandRevalidate?: boolean;
|
|
cacheComponents: boolean;
|
|
fetchCache?: AppSegmentConfig['fetchCache'];
|
|
isPossibleServerAction?: boolean;
|
|
pendingWaitUntil?: Promise<any>;
|
|
experimental: Pick<RenderOpts['experimental'], 'isRoutePPREnabled' | 'authInterrupts'>;
|
|
/**
|
|
* Fetch metrics attached in patch-fetch.ts
|
|
**/
|
|
fetchMetrics?: FetchMetric[];
|
|
} & Pick<RenderOpts, 'assetPrefix' | 'supportsDynamicResponse' | 'shouldWaitOnAllReady' | 'nextExport' | 'isDraftMode' | 'isDebugDynamicAccesses' | 'dev' | 'hasReadableErrorStacks'> & RequestLifecycleOpts & Partial<Pick<RenderOpts, 'reactLoadableManifest'>>;
|
|
/**
|
|
* The build ID of the current build.
|
|
*/
|
|
buildId: string;
|
|
previouslyRevalidatedTags: string[];
|
|
};
|
|
export declare function createWorkStore({ page, renderOpts, isPrefetchRequest, buildId, previouslyRevalidatedTags, nonce, }: WorkStoreContext): WorkStore;
|