From 95095a97a60907b45f6f954bd1383e38f71ba902 Mon Sep 17 00:00:00 2001 From: walle Date: Wed, 19 Nov 2025 15:56:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E4=B8=BA=E9=9D=99=E6=80=81?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=A8=A1=E5=BC=8F=E4=BF=AE=E5=A4=8DDocker?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🛠️ 构建修复: - 改为 output: 'static' 静态构建 - 移除 Node.js 适配器依赖 - 修复 Docker 容器部署显示问题 - 确保静态文件能正确通过Nginx提供服务 ⚠️ 注意: 静态模式下API端点将不可用 如需API功能,需要改用Node.js服务器部署 --- astro.config.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 9e97f61..2d8e50a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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({