fix: Vercel SPA rewrite for /detail route

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-02 18:23:29 +09:00
parent 849897b141
commit e562356fd2
2 changed files with 8 additions and 1 deletions

View File

@@ -40,8 +40,10 @@ export function openDetailWindow(): Window | null {
const screenH = window.screen.height;
const rightMonitorLeft = window.screenX + screenW;
const detailUrl = `${window.location.origin}/detail`;
detailWindow = window.open(
'/detail',
detailUrl,
DETAIL_WINDOW_NAME,
`width=${screenW},height=${screenH},left=${rightMonitorLeft},top=0,resizable=yes,scrollbars=yes`,
);

5
frontend/vercel.json Normal file
View File

@@ -0,0 +1,5 @@
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}