Skip to content

适配器不支持服务器输出。

AdapterSupportOutputMismatch:ADAPTER_NAME 适配器配置为输出静态网站,但项目包含服务器渲染的页面。请为你的最终部署安装并配置适当的服务器适配器。

¥AdapterSupportOutputMismatch: The ADAPTER_NAME adapter is configured to output a static website, but the project contains server-rendered pages. Please install and configure the appropriate server adapter for your final deployment.

¥What went wrong?

当前配置的适配器不支持服务器端渲染,而这是当前项目设置所必需的。

¥The currently configured adapter does not support server-side rendering, which is required for the current project setup.

根据你的适配器,可能存在用于服务器端渲染的不同入口点。例如,@astrojs/vercel 适配器具有用于静态渲染的 @astrojs/vercel/static 入口点和用于服务器端渲染的 @astrojs/vercel/serverless 入口点。

¥Depending on your adapter, there may be a different entrypoint to use for server-side rendering. For example, the @astrojs/vercel adapter has a @astrojs/vercel/static entrypoint for static rendering, and a @astrojs/vercel/serverless entrypoint for server-side rendering.

也可以看看:

¥See Also:

Astro 中文网 - 粤ICP备13048890号