From 67fd059e64e0cca38b6bfaf2149cc7764ef8baf6 Mon Sep 17 00:00:00 2001 From: Ian Bull Date: Sun, 8 Dec 2024 12:35:32 -0800 Subject: [PATCH] Remove warning about `static` output The `static` output mode has been removed in Astro 5.0 [1,2]. This commit removes the warning about `static` output mode from the deno astro adapter. [1] https://5-0-0-beta--astro-docs-2.netlify.app/en/guides/upgrade-to/v5/#removed-hybrid-rendering-mode [2] https://astro.build/blog/astro-5/ --- src/index.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index 93a05f2..cd7273c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,15 +130,6 @@ export default function createIntegration(args?: Options): AstroIntegration { "astro:config:done": ({ setAdapter, config }) => { setAdapter(getAdapter(args)); _buildConfig = config.build; - - if (config.output === "static") { - console.warn( - `[@deno/astro-adapter] \`output: "server"\` or \`output: "hybrid"\` is required to use this adapter.`, - ); - console.warn( - `[@deno/astro-adapter] Otherwise, this adapter is not required to deploy a static site to Deno.`, - ); - } }, "astro:build:setup": ({ vite, target }) => { if (target === "server") {