Small polish to the "missing adapter" error message (#4585)
* improve output server error message * chore: changeset Co-authored-by: bholmesdev <hey@bholmes.dev>
This commit is contained in:
parent
c62257f0b0
commit
f018e365cf
2 changed files with 7 additions and 2 deletions
5
.changeset/thick-guests-sell.md
Normal file
5
.changeset/thick-guests-sell.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add docs link to "missing adapter" error msg
|
|
@ -28,9 +28,9 @@ export async function staticBuild(opts: StaticBuildOptions) {
|
|||
if (isModeServerWithNoAdapter(opts.astroConfig)) {
|
||||
throw new Error(`Cannot use \`output: 'server'\` without an adapter.
|
||||
Install and configure the appropriate server adapter for your final deployment.
|
||||
Example:
|
||||
Learn more: https://docs.astro.build/en/guides/server-side-rendering/
|
||||
|
||||
// astro.config.js
|
||||
// Example: astro.config.js
|
||||
import netlify from '@astrojs/netlify';
|
||||
export default {
|
||||
output: 'server',
|
||||
|
|
Loading…
Reference in a new issue