{"record":{"id":"738914aed92befb9","repo":"sveltejs/kit","slug":"if-you-plan-to-continue-deploying-to-match-name","errorCode":null,"errorMessage":"\nIf you plan to continue deploying to ${match.name}, consider replacing @sveltejs/adapter-auto with ${match.module}. This will give you faster installs and more control over deployment configuration.\n","messagePattern":"\nIf you plan to continue deploying to (.+?), consider replacing @sveltejs/adapter-auto with (.+?)\\. This will give you faster installs and more control over deployment configuration\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/adapter-auto/index.js","lineNumber":114,"sourceCode":"\t} catch {\n\t\tconst package_manager = detect_package_manager();\n\t\tconst command = commands[package_manager](match.module, match.version);\n\n\t\ttry {\n\t\t\tconsole.log(`Installing ${match.module}...`);\n\n\t\t\texecSync(command, {\n\t\t\t\tstdio: 'inherit',\n\t\t\t\tenv: {\n\t\t\t\t\t...process.env,\n\t\t\t\t\tNODE_ENV: undefined\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tresolved = resolve_peer(match.module);\n\n\t\t\tconsole.log(`Successfully installed ${match.module}.`);\n\t\t\tconsole.warn(\n\t\t\t\t`\\nIf you plan to continue deploying to ${match.name}, consider replacing @sveltejs/adapter-auto with ${match.module}. This will give you faster installs and more control over deployment configuration.\\n`\n\t\t\t);\n\t\t} catch (e) {\n\t\t\tthrow new Error(\n\t\t\t\t`Could not install ${match.module}. Please install it yourself by adding it to your package.json's devDependencies and try building your project again.`,\n\t\t\t\t{ cause: e }\n\t\t\t);\n\t\t}\n\t}\n\n\t/** @type {{ default: () => Adapter }} */\n\tconst module = await import(pathToFileURL(resolved).href);\n\n\tconst adapter = module.default();\n\n\treturn {\n\t\t...adapter,\n\t\tadapt: (builder) => {","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/sveltejs/kit/blob/03f1687fe612ce3d2d9131139b5b188d9cf90c64/packages/adapter-auto/index.js#L96-L132","documentation":"adapter-auto detects the deployment platform and, when possible, installs the matching concrete adapter as a peer dependency at build time. After installing, it logs this notice suggesting you add the specific adapter (e.g. @sveltejs/adapter-vercel) to devDependencies yourself for faster installs and direct control.","triggerScenarios":"Running `vite build` (adapt step) on a detected platform (via environment variables like VERCEL, NETLIFY, etc.) where the matching adapter module is not in node_modules, so `resolve_peer(match.module)` succeeds only because adapter-auto just installed it.","commonSituations":"CI environments where the platform adapter isn't committed to package.json; fresh clones deploying to Vercel/Netlify/Cloudflare relying on auto-detection; monorepos missing the peer dep.","solutions":["Install the detected adapter explicitly: `npm i -D @sveltejs/adapter-vercel` (or the module named in the message)","Replace `@sveltejs/adapter-auto` with the concrete adapter in svelte.config.js","Commit the adapter to devDependencies so CI doesn't rely on runtime installation"],"exampleFix":"// before\nimport adapter from '@sveltejs/adapter-auto';\n// after\nimport adapter from '@sveltejs/adapter-vercel';","handlingStrategy":"validation","validationCode":"// before build: ensure the concrete adapter is a devDependency\nconst pkg = require('./package.json');\nif (pkg.devDependencies?.['@sveltejs/adapter-auto'] && !Object.keys(pkg.devDependencies).some(d => d.startsWith('@sveltejs/adapter-') && d !== '@sveltejs/adapter-auto')) {\n  console.warn('adapter-auto will install a platform adapter at build time; pin it explicitly');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin the concrete adapter for your platform in devDependencies","Review build logs for 'Successfully installed ...' notices","Commit adapter choice to svelte.config.js instead of relying on auto-detection"],"tags":["adapter-auto","deployment","install","config"],"backgroundTag":"auto-adapter-detected-install","analyzedSha":"03f1687fe612ce3d2d9131139b5b188d9cf90c64","analyzedAt":"2026-09-02T02:01:50.504Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}