feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
This commit is contained in:
42
apps/public-web/node_modules/next/dist/server/app-render/action-handler.d.ts
generated
vendored
Normal file
42
apps/public-web/node_modules/next/dist/server/app-render/action-handler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import type { IncomingHttpHeaders } from 'node:http';
|
||||
import type { SizeLimit } from '../../types';
|
||||
import type { RequestStore } from '../app-render/work-unit-async-storage.external';
|
||||
import type { AppRenderContext, GenerateFlight } from './app-render';
|
||||
import type { AppPageModule } from '../route-modules/app-page/module';
|
||||
import type { BaseNextRequest, BaseNextResponse } from '../base-http';
|
||||
import RenderResult, { type AppPageRenderResultMetadata } from '../render-result';
|
||||
import type { WorkStore } from '../app-render/work-async-storage.external';
|
||||
declare const enum HostType {
|
||||
XForwardedHost = "x-forwarded-host",
|
||||
Host = "host"
|
||||
}
|
||||
export declare function parseHostHeader(headers: IncomingHttpHeaders, originDomain?: string): {
|
||||
type: HostType;
|
||||
value: string;
|
||||
} | undefined;
|
||||
type ServerActionsConfig = {
|
||||
bodySizeLimit?: SizeLimit;
|
||||
allowedOrigins?: string[];
|
||||
};
|
||||
type HandleActionResult = {
|
||||
/** An MPA action threw notFound(), and we need to render the appropriate HTML */
|
||||
type: 'not-found';
|
||||
} | {
|
||||
type: 'done';
|
||||
result: RenderResult | undefined;
|
||||
formState?: any;
|
||||
}
|
||||
/** The request turned out not to be a server action. */
|
||||
| null;
|
||||
export declare function handleAction({ req, res, ComponentMod, generateFlight, workStore, requestStore, serverActions, ctx, metadata, }: {
|
||||
req: BaseNextRequest;
|
||||
res: BaseNextResponse;
|
||||
ComponentMod: AppPageModule;
|
||||
generateFlight: GenerateFlight;
|
||||
workStore: WorkStore;
|
||||
requestStore: RequestStore;
|
||||
serverActions?: ServerActionsConfig;
|
||||
ctx: AppRenderContext;
|
||||
metadata: AppPageRenderResultMetadata;
|
||||
}): Promise<HandleActionResult>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user