warnMissingAdapter() — astro Function Reference
Architecture documentation for the warnMissingAdapter() function in adapter-validation.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 24765b64_22cd_df9a_6e01_9546d748837a["warnMissingAdapter()"] 3505fa2b_e453_959a_1c3e_5d3e5935e4cf["adapter-validation.ts"] 24765b64_22cd_df9a_6e01_9546d748837a -->|defined in| 3505fa2b_e453_959a_1c3e_5d3e5935e4cf style 24765b64_22cd_df9a_6e01_9546d748837a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/dev/adapter-validation.ts lines 9–18
export function warnMissingAdapter(logger: Logger, settings: AstroSettings) {
if (hasWarnedMissingAdapter) return;
if (settings.buildOutput === 'server' && !settings.config.adapter) {
logger.warn(
'config',
'This project contains server-rendered routes, but no adapter is installed. This is fine for development, but an adapter will be required to build your site for production.',
);
hasWarnedMissingAdapter = true;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does warnMissingAdapter() do?
warnMissingAdapter() is a function in the astro codebase, defined in packages/astro/src/core/dev/adapter-validation.ts.
Where is warnMissingAdapter() defined?
warnMissingAdapter() is defined in packages/astro/src/core/dev/adapter-validation.ts at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free