fix: 改为静态构建模式修复Docker部署问题

🛠️ 构建修复:
- 改为 output: 'static' 静态构建
- 移除 Node.js 适配器依赖
- 修复 Docker 容器部署显示问题
- 确保静态文件能正确通过Nginx提供服务

⚠️ 注意: 静态模式下API端点将不可用
如需API功能,需要改用Node.js服务器部署
This commit is contained in:
walle 2025-11-19 15:56:34 +08:00
parent 4904d6a95e
commit 95095a97a6

View file

@ -5,10 +5,7 @@ import node from '@astrojs/node';
import AstroPWA from '@vite-pwa/astro';
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone'
}),
output: 'static',
integrations: [
react(),
AstroPWA({