현재 작업 전체 반영

This commit is contained in:
Yun Chan 2026-06-27 16:08:41 +09:00
parent 5560638e54
commit c0dddab594
85 changed files with 11322 additions and 539 deletions

View file

@ -25,6 +25,17 @@ export default defineConfig({
target: apiProxyTarget,
changeOrigin: true,
ws: true,
configure(proxy) {
proxy.on("proxyReq", (proxyReq, req) => {
const forwardedHost = req.headers.host;
if (forwardedHost) {
proxyReq.setHeader("x-forwarded-host", forwardedHost);
const hostName = String(forwardedHost).split(":")[0];
const forwardedProto = allowedHosts.includes(hostName) ? "https" : "http";
proxyReq.setHeader("x-forwarded-proto", forwardedProto);
}
});
},
// 백엔드 라우트는 /auth, /sessions, /health 로 노출되므로 /api 프리픽스 제거.
rewrite: (path) => path.replace(/^\/api/, ""),
},