fix: Vercel SPA rewrite for /detail route
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,8 +40,10 @@ export function openDetailWindow(): Window | null {
|
|||||||
const screenH = window.screen.height;
|
const screenH = window.screen.height;
|
||||||
const rightMonitorLeft = window.screenX + screenW;
|
const rightMonitorLeft = window.screenX + screenW;
|
||||||
|
|
||||||
|
const detailUrl = `${window.location.origin}/detail`;
|
||||||
|
|
||||||
detailWindow = window.open(
|
detailWindow = window.open(
|
||||||
'/detail',
|
detailUrl,
|
||||||
DETAIL_WINDOW_NAME,
|
DETAIL_WINDOW_NAME,
|
||||||
`width=${screenW},height=${screenH},left=${rightMonitorLeft},top=0,resizable=yes,scrollbars=yes`,
|
`width=${screenW},height=${screenH},left=${rightMonitorLeft},top=0,resizable=yes,scrollbars=yes`,
|
||||||
);
|
);
|
||||||
|
|||||||
5
frontend/vercel.json
Normal file
5
frontend/vercel.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"rewrites": [
|
||||||
|
{ "source": "/(.*)", "destination": "/index.html" }
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user