@modern-js/types
Version:
A Progressive React Framework for modern web development.
25 lines (24 loc) • 625 B
TypeScript
export interface ServerRoute {
// modern js web entry name
entryName?: string;
// the url path for request match
urlPath: string;
// the default asset to response to route
entryPath: string;
// if route is spa page
isSPA?: boolean;
// if route is ssr page
isSSR?: boolean;
// if route is rsc page
isRSC?: boolean;
// if route is stream response
isStream?: boolean;
// if route is api service
isApi?: boolean;
// worker js bundle for ssr page
worker?: string;
// ssr js bundle for ssr page
bundle?: string;
// response header for routes
responseHeaders?: Record<string, unknown>;
}