Home / Type/ MiddlewarePayload Type — astro Architecture

MiddlewarePayload Type — astro Architecture

Architecture documentation for the MiddlewarePayload type/interface in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e9332169_f601_4e46_ea1f_3956728983d9["MiddlewarePayload"]
  e4a1ef92_c598_36b5_dc33_9ab2535360bc["index.ts"]
  e9332169_f601_4e46_ea1f_3956728983d9 -->|defined in| e4a1ef92_c598_36b5_dc33_9ab2535360bc
  style e9332169_f601_4e46_ea1f_3956728983d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/i18n/index.ts lines 299–309

export type MiddlewarePayload = {
	base: string;
	locales: Locales;
	trailingSlash: AstroConfig['trailingSlash'];
	format: AstroConfig['build']['format'];
	strategy: RoutingStrategies;
	defaultLocale: string;
	domains: Record<string, string> | undefined;
	fallback: Record<string, string> | undefined;
	fallbackType: 'redirect' | 'rewrite';
};

Frequently Asked Questions

What is the MiddlewarePayload type?
MiddlewarePayload is a type/interface in the astro codebase, defined in packages/astro/src/i18n/index.ts.
Where is MiddlewarePayload defined?
MiddlewarePayload is defined in packages/astro/src/i18n/index.ts at line 299.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free