From 701231853416a37294df17f06e71774c5b9a34cb Mon Sep 17 00:00:00 2001 From: Hyein Date: Wed, 24 Jun 2026 08:36:53 +0900 Subject: [PATCH] Serve flow page under 8093 path --- src/App.jsx | 3 ++- vite.config.js | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 15bdf41..cacc352 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1958,8 +1958,9 @@ export default function App() { const openProgramWindow = (programId) => { publishProgramStates(programStates); + const appPath = window.location.pathname.startsWith('/8093') ? '/8093' : window.location.pathname || '/8093'; window.open( - `/?view=program-detail&program=${encodeURIComponent(programId)}`, + `${appPath}?view=program-detail&program=${encodeURIComponent(programId)}`, 'program-detail-flow', 'popup=yes,width=620,height=990,left=80,top=40,resizable=yes,scrollbars=yes' ); diff --git a/vite.config.js b/vite.config.js index 2b6410a..3c2ab2f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -117,6 +117,17 @@ function serverDatabasePlugin() { return { name: 'flow-server-sqlite-database', configureServer(server) { + server.middlewares.use((request, response, next) => { + if (request.url === '/') { + response.statusCode = 302; + response.setHeader('Location', '/8093'); + response.end(); + return; + } + + next(); + }); + server.middlewares.use('/api/state', async (request, response) => { try { if (request.method === 'GET') {