Skip to content

Commit

Permalink
Remove warning about static output
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
irbull committed Dec 8, 2024
1 parent 9dbbc5d commit 67fd059
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 67fd059

Please sign in to comment.