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',