summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-09-01 14:34:20 -0700
committerGravatar GitHub <noreply@github.com> 2022-09-01 21:34:20 +0000
commitf018e365cf22bd6b7235fe956e33b5d80fa059a1 (patch)
treef443fca272cba6cce03de25b8f543f6fd98b5c96
parentc62257f0b03e35520448fbfac1f4b507f54ef170 (diff)
downloadastro-f018e365cf22bd6b7235fe956e33b5d80fa059a1.tar.gz
astro-f018e365cf22bd6b7235fe956e33b5d80fa059a1.tar.zst
astro-f018e365cf22bd6b7235fe956e33b5d80fa059a1.zip
Small polish to the "missing adapter" error message (#4585)
* improve output server error message * chore: changeset Co-authored-by: bholmesdev <hey@bholmes.dev>
-rw-r--r--.changeset/thick-guests-sell.md5
-rw-r--r--packages/astro/src/core/build/static-build.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/thick-guests-sell.md b/.changeset/thick-guests-sell.md
new file mode 100644
index 000000000..b22c380c9
--- /dev/null
+++ b/.changeset/thick-guests-sell.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Add docs link to "missing adapter" error msg
diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts
index 074e01f83..e471f6652 100644
--- a/packages/astro/src/core/build/static-build.ts
+++ b/packages/astro/src/core/build/static-build.ts
@@ -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',