From f018e365cf22bd6b7235fe956e33b5d80fa059a1 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 1 Sep 2022 14:34:20 -0700 Subject: [PATCH] Small polish to the "missing adapter" error message (#4585) * improve output server error message * chore: changeset Co-authored-by: bholmesdev --- .changeset/thick-guests-sell.md | 5 +++++ packages/astro/src/core/build/static-build.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/thick-guests-sell.md 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',