Home / Function/ getAdapter() — astro Function Reference

getAdapter() — astro Function Reference

Architecture documentation for the getAdapter() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  49acc476_8ac9_7059_97c7_d8681244d41e["getAdapter()"]
  cd0e7127_96f9_d468_a86c_01d17d962513["index.ts"]
  49acc476_8ac9_7059_97c7_d8681244d41e -->|defined in| cd0e7127_96f9_d468_a86c_01d17d962513
  5dd1c441_d442_c1c9_1353_5b95f9ce843a["createIntegration()"]
  5dd1c441_d442_c1c9_1353_5b95f9ce843a -->|calls| 49acc476_8ac9_7059_97c7_d8681244d41e
  style 49acc476_8ac9_7059_97c7_d8681244d41e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/node/src/index.ts lines 15–36

export function getAdapter(options: Options): AstroAdapter {
	return {
		name: '@astrojs/node',
		serverEntrypoint: '@astrojs/node/server.js',
		previewEntrypoint: '@astrojs/node/preview.js',
		exports: ['handler', 'startServer', 'options'],
		args: options,
		adapterFeatures: {
			buildOutput: 'server',
			edgeMiddleware: false,
			staticHeaders: options.staticHeaders,
		},
		supportedAstroFeatures: {
			hybridOutput: 'stable',
			staticOutput: 'stable',
			serverOutput: 'stable',
			sharpImageService: 'stable',
			i18nDomains: 'experimental',
			envGetSecret: 'stable',
		},
	};
}

Domain

Subdomains

Frequently Asked Questions

What does getAdapter() do?
getAdapter() is a function in the astro codebase, defined in packages/integrations/node/src/index.ts.
Where is getAdapter() defined?
getAdapter() is defined in packages/integrations/node/src/index.ts at line 15.
What calls getAdapter()?
getAdapter() is called by 1 function(s): createIntegration.

Analyze Your Own Codebase

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

Try Supermodel Free