vuejs 해제

This commit is contained in:
2025-10-23 22:09:19 +09:00
parent cd0e139b5e
commit 16fc088319
+2 -2
View File
@@ -159,9 +159,9 @@ app.use('/api/users', userRoutes);
app.use('/api/notifications', notificationRoutes);
app.use('/api/menus', menuRoutes);
// 정적 파일 제공 설정 (Flutter Web 빌드 산출물)
// 정적 파일 제공 설정 (Flutter Web 빌드 산출물: mobile/build/web)
const path = require('path');
const WEB_ROOT = process.env.FRONTEND_ROOT || path.join(__dirname, '../public');
const WEB_ROOT = process.env.FRONTEND_ROOT || path.join(__dirname, '../mobile/build/web');
app.use(express.static(WEB_ROOT));
// API 요청이 아닌 모든 요청은 Flutter Web 앱으로 라우팅 (SPA Fallback)