mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
d701ae074a
commit
982e446e8d
2 changed files with 17 additions and 15 deletions
|
@ -15,7 +15,7 @@ const UNSUPPORTED_ADAPTERS = new Set([
|
|||
'@astrojs/cloudflare',
|
||||
'@astrojs/deno',
|
||||
'@astrojs/netlify/edge-functions',
|
||||
'@astrojs/vercel/edge'
|
||||
'@astrojs/vercel/edge',
|
||||
]);
|
||||
|
||||
interface BuildConfig {
|
||||
|
@ -108,7 +108,9 @@ export default function integration(options: IntegrationOptions = {}): AstroInte
|
|||
'astro:build:start': ({ buildConfig }) => {
|
||||
const adapterName = _config.adapter?.name;
|
||||
if (adapterName && UNSUPPORTED_ADAPTERS.has(adapterName)) {
|
||||
throw new Error(`@astrojs/image is not supported with the ${adapterName} adapter. Please choose a Node.js compatible adapter.`);
|
||||
throw new Error(
|
||||
`@astrojs/image is not supported with the ${adapterName} adapter. Please choose a Node.js compatible adapter.`
|
||||
);
|
||||
}
|
||||
|
||||
// Backwards compat
|
||||
|
|
Loading…
Reference in a new issue