SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter
Overall
score
96%
{
"context": "This criteria evaluates how well the engineer uses @sveltejs/adapter-auto's adapter delegation pattern to detect deployment environments and dynamically delegate build operations to platform-specific adapters. The focus is on proper use of environment detection, dynamic imports, and adapter wrapping mechanisms.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Environment detection",
"description": "Uses environment variable checking (process.env) to detect platform-specific deployment environments (VERCEL, NETLIFY, CF_PAGES, etc.) and returns the appropriate platform identifier or null when no platform is detected",
"max_score": 20
},
{
"name": "Dynamic import usage",
"description": "Uses dynamic import() to load platform-specific adapter modules (@sveltejs/adapter-vercel, @sveltejs/adapter-netlify, @sveltejs/adapter-cloudflare) based on the detected environment at runtime",
"max_score": 25
},
{
"name": "Adapter instantiation",
"description": "Calls the imported adapter's default export function to instantiate the platform-specific adapter and obtain its adapter object",
"max_score": 20
},
{
"name": "Delegation implementation",
"description": "Properly delegates the adapt() or build operation to the platform-specific adapter by calling its methods with the provided builder/configuration object",
"max_score": 20
},
{
"name": "Return value handling",
"description": "Correctly returns or passes through the result from the platform-specific adapter's methods to the caller",
"max_score": 10
},
{
"name": "Error handling",
"description": "Throws appropriate errors with helpful messages when no platform is detected or when delegation fails",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-sveltejs--adapter-autodocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10