Use 8093 port root URL

This commit is contained in:
2026-06-24 08:40:43 +09:00
parent 7012318534
commit 3ec4aec98b
2 changed files with 1 additions and 13 deletions

View File

@@ -1958,9 +1958,8 @@ export default function App() {
const openProgramWindow = (programId) => {
publishProgramStates(programStates);
const appPath = window.location.pathname.startsWith('/8093') ? '/8093' : window.location.pathname || '/8093';
window.open(
`${appPath}?view=program-detail&program=${encodeURIComponent(programId)}`,
`/?view=program-detail&program=${encodeURIComponent(programId)}`,
'program-detail-flow',
'popup=yes,width=620,height=990,left=80,top=40,resizable=yes,scrollbars=yes'
);

View File

@@ -117,17 +117,6 @@ 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') {