From 48c11466e76ea582bbdec933b18a4a3ef39ce1f8 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 26 Jul 2023 14:18:07 +0100 Subject: [PATCH] fix regressions --- examples/deno/astro.config.mjs | 6 ++++++ packages/integrations/vercel/src/serverless/adapter.ts | 4 ++-- packages/integrations/vercel/test/no-output.test.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/deno/astro.config.mjs b/examples/deno/astro.config.mjs index 1a5c7f32ce1d7..8a33f20a8e428 100644 --- a/examples/deno/astro.config.mjs +++ b/examples/deno/astro.config.mjs @@ -6,4 +6,10 @@ import deno from '@astrojs/deno'; export default defineConfig({ output: 'server', adapter: deno(), + image: { + service: { + // deno doesn't support assets, we provide a fake service so the project will build + entrypoint: "fake/service" + } + } }); diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts index 50afbf0d1e5a1..92503be8661a6 100644 --- a/packages/integrations/vercel/src/serverless/adapter.ts +++ b/packages/integrations/vercel/src/serverless/adapter.ts @@ -39,8 +39,8 @@ function getAdapter(): AstroAdapter { staticOutput: 'Stable', serverOutput: 'Stable', assets: { - supportKind: 'Unsupported', - isNodeCompatible: false, + supportKind: 'Stable', + isNodeCompatible: true, }, }, }; diff --git a/packages/integrations/vercel/test/no-output.test.js b/packages/integrations/vercel/test/no-output.test.js index af4d9c2b6639d..3894ee779a9f5 100644 --- a/packages/integrations/vercel/test/no-output.test.js +++ b/packages/integrations/vercel/test/no-output.test.js @@ -19,6 +19,6 @@ describe('Missing output config', () => { error = err; } expect(error).to.not.be.equal(undefined); - expect(error.message).to.include(`output: "server"`); + expect(error.message).to.include('output: "server"'); }); });