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:
Fred K. Schott 2022-09-01 14:34:20 -07:00 committed by GitHub
parent c62257f0b0
commit f018e365cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Add docs link to "missing adapter" error msg

View file

@ -28,9 +28,9 @@ export async function staticBuild(opts: StaticBuildOptions) {
if (isModeServerWithNoAdapter(opts.astroConfig)) { if (isModeServerWithNoAdapter(opts.astroConfig)) {
throw new Error(`Cannot use \`output: 'server'\` without an adapter. throw new Error(`Cannot use \`output: 'server'\` without an adapter.
Install and configure the appropriate server adapter for your final deployment. 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'; import netlify from '@astrojs/netlify';
export default { export default {
output: 'server', output: 'server',