fix(proxy): redirect root to dashboard
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,9 @@ app.use('/api/*', corsMiddleware);
|
|||||||
// API routes
|
// API routes
|
||||||
app.route('/api', api);
|
app.route('/api', api);
|
||||||
|
|
||||||
|
// Redirect root to dashboard
|
||||||
|
app.get('/', (c) => c.redirect('/dashboard/'));
|
||||||
|
|
||||||
// Dashboard static files (in Docker: ./public/dashboard, in dev: ../web/build)
|
// Dashboard static files (in Docker: ./public/dashboard, in dev: ../web/build)
|
||||||
app.use('/dashboard/*', serveStatic({ root: './public' }));
|
app.use('/dashboard/*', serveStatic({ root: './public' }));
|
||||||
app.get('/dashboard', serveStatic({ root: './public', path: '/dashboard/index.html' }));
|
app.get('/dashboard', serveStatic({ root: './public', path: '/dashboard/index.html' }));
|
||||||
|
|||||||
Reference in New Issue
Block a user