Add the output option#4015
Conversation
🦋 Changeset detectedLatest commit: 3d179ab The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
FredKSchott
left a comment
There was a problem hiding this comment.
LGTM so far!
force people to rename adapter to deploy or stay back-compat with adapter and a deprecation notice?
I'd lean for back-compat + deprecation notice. It's cheap to do a config rename like that inside of validateConfig() iirc.
|
TODO:
|
4acd885 to
fa48c4e
Compare
natemoo-re
left a comment
There was a problem hiding this comment.
Blocking this PR. There is an ongoing discussion on Discord about overloading the name mode which is a well-defined Vite-ism.
As soon as that's resolved, I'm totally on board with the core changes here.
1e97fdf to
a5ffe45
Compare
| '@astrojs/vercel': minor | ||
| --- | ||
|
|
||
| New `mode` configuration option |
There was a problem hiding this comment.
Changeset needs to be updated to refer to output
There was a problem hiding this comment.
Thanks for helping to get this over the line @matthewp. I took a quick pass to clean this up for you so that we can merge in time for the RC. Here's a summary of the changes made on top of your PR:
- cleaned up some of the auto-doc generation types.
- cleaned up some of the old code from my original PR that had made its way into this one (old changesets, old "exports' entry, etc)
- Kept the config
outputand the term "output target"/"output mode" used to describe it. - Reverted the
deploychange to keep it asadapterfor now. I'm glad that we experimented with a new name here but after trying a few out first-hand I wasn't happy with anything to the point that it would be worth the switch and increased migration cost of the more importantoutputchange. Let's keep it as "adapter" for now and can revisit later if user feedback is that the word "adapter" is still too vague.
* 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>
* 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>
* 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>
* 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>
* 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>
Changes
output: 'static' | 'server'output === 'server'we through an error during build.Testing
Docs