diff options
author | 2022-07-25 00:18:02 -0400 | |
---|---|---|
committer | 2022-07-25 00:18:02 -0400 | |
commit | 42da2e23eb3f677d25b7ed0aab273f219c8cab4e (patch) | |
tree | ff36c910b6b1b7408e3e24507451da48ffeda1a1 /packages/integrations/node/src | |
parent | 3f716dba24c5ba4e230977d5209422ba3c85a0be (diff) | |
download | astro-42da2e23eb3f677d25b7ed0aab273f219c8cab4e.tar.gz astro-42da2e23eb3f677d25b7ed0aab273f219c8cab4e.tar.zst astro-42da2e23eb3f677d25b7ed0aab273f219c8cab4e.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.`); + } }, }, }; |