mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 09:24:14 +00:00
fix: 改为静态构建模式修复Docker部署问题
🛠️ 构建修复: - 改为 output: 'static' 静态构建 - 移除 Node.js 适配器依赖 - 修复 Docker 容器部署显示问题 - 确保静态文件能正确通过Nginx提供服务 ⚠️ 注意: 静态模式下API端点将不可用 如需API功能,需要改用Node.js服务器部署
This commit is contained in:
parent
4904d6a95e
commit
95095a97a6
1 changed files with 1 additions and 4 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue