/**
 * Build Adapter Registry
 *
 * Maps detected framework names to their build adapters.
 * Specific adapters handle framework-specific concerns (e.g., Next.js standalone mode).
 * Frameworks without a specific adapter fall through to the generic adapter.
 */
import { genericAdapter } from "./generic.js";
import { nextjsAdapter } from "./nextjs.js";
/**
 * Registry of framework-specific build adapters.
 * Frameworks not in this map use the generic adapter.
 */
const adapters = {
    nextjs: nextjsAdapter,
};
/**
 * Get the build adapter for a detected framework.
 * Falls back to the generic adapter if no specific one exists.
 */
export function getAdapter(frameworkName) {
    return adapters[frameworkName] ?? genericAdapter;
}
//# sourceMappingURL=index.js.map