diff options
author | 2022-07-25 00:18:02 -0400 | |
---|---|---|
committer | 2022-07-25 00:18:02 -0400 | |
commit | 6fd161d7691cbf9d3ffa4646e46059dfd0940010 (patch) | |
tree | ce2d0ce18f42a0cb0de026cbf50a0be1a57c07d0 /packages/integrations/deno/src | |
parent | 8859655f15b718a1fc89bf87d352aa98841b88ad (diff) | |
download | astro-6fd161d7691cbf9d3ffa4646e46059dfd0940010.tar.gz astro-6fd161d7691cbf9d3ffa4646e46059dfd0940010.tar.zst astro-6fd161d7691cbf9d3ffa4646e46059dfd0940010.zip |
Add the `output` option (#4015)
* Start of work on astroConfig.mode === 'server'
* Add tests and more
* adapter -> deploy in some places
* Add fallback for `adapter` config
* Update more tests
* Update image tests
* Fix clientAddress test
* Updates based on PR review
* Add a changeset
* Update integrations tests + readme
* Oops
* Remove old option
* Rename `mode` to `output`
* Update Node adapter test
* Update test
* fred pass
* fred pass
* fred pass
* fix test
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Diffstat (limited to 'packages/integrations/deno/src')
-rw-r--r-- | packages/integrations/deno/src/index.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts index 9a6df4f76..73ccf01e0 100644 --- a/packages/integrations/deno/src/index.ts +++ b/packages/integrations/deno/src/index.ts @@ -29,8 +29,13 @@ export default function createIntegration(args?: Options): AstroIntegration { return { name: '@astrojs/deno', hooks: { - 'astro:config:done': ({ setAdapter }) => { + 'astro:config:done': ({ setAdapter, config }) => { setAdapter(getAdapter(args)); + + if(config.output === 'static') { + console.warn(`[@astrojs/deno] \`output: "server"\` is required to use this adapter.`); + console.warn(`[@astrojs/deno] Otherwise, this adapter is not required to deploy a static site to Deno.`); + } }, 'astro:build:start': ({ buildConfig }) => { _buildConfig = buildConfig; |