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/node/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/node/src')
-rw-r--r-- | packages/integrations/node/src/index.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/integrations/node/src/index.ts b/packages/integrations/node/src/index.ts index b90cd9d2e..8ff6fc423 100644 --- a/packages/integrations/node/src/index.ts +++ b/packages/integrations/node/src/index.ts @@ -12,8 +12,12 @@ export default function createIntegration(): AstroIntegration { return { name: '@astrojs/node', hooks: { - 'astro:config:done': ({ setAdapter }) => { + 'astro:config:done': ({ setAdapter, config }) => { setAdapter(getAdapter()); + + if(config.output === 'static') { + console.warn(`[@astrojs/Node] \`output: "server"\` is required to use this adapter.`); + } }, }, }; |