Home / Function/ options() — astro Function Reference

options() — astro Function Reference

Architecture documentation for the options() function in integrations.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  cc6875dc_f367_0bff_7870_3028d9a46c80["options()"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb["integrations.ts"]
  cc6875dc_f367_0bff_7870_3028d9a46c80 -->|defined in| 5a61a076_c3db_01bc_0201_03ec73ca05bb
  style cc6875dc_f367_0bff_7870_3028d9a46c80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/types/public/integrations.ts lines 255–269

	'astro:config:setup': (options: {
		config: AstroConfig;
		command: 'dev' | 'build' | 'preview' | 'sync';
		isRestart: boolean;
		updateConfig: (newConfig: DeepPartial<AstroConfig>) => AstroConfig;
		addRenderer: (renderer: AstroRenderer) => void;
		addWatchFile: (path: URL | string) => void;
		injectScript: (stage: InjectedScriptStage, content: string) => void;
		injectRoute: (injectRoute: InjectedRoute) => void;
		addClientDirective: (directive: ClientDirectiveConfig) => void;
		addDevToolbarApp: (entrypoint: DevToolbarAppEntry) => void;
		addMiddleware: (mid: AstroIntegrationMiddleware) => void;
		createCodegenDir: () => URL;
		logger: AstroIntegrationLogger;
	}) => void | Promise<void>;

Domain

Subdomains

Frequently Asked Questions

What does options() do?
options() is a function in the astro codebase, defined in packages/astro/src/types/public/integrations.ts.
Where is options() defined?
options() is defined in packages/astro/src/types/public/integrations.ts at line 255.

Analyze Your Own Codebase

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

Try Supermodel Free