diff --git a/packages/nocodb/src/middlewares/public/public.middleware.spec.ts b/packages/nocodb/src/middlewares/public/public.middleware.spec.ts deleted file mode 100644 index 7b5e460f52..0000000000 --- a/packages/nocodb/src/middlewares/public/public.middleware.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PublicMiddleware } from './public.middleware'; - -describe('PublicMiddleware', () => { - it('should be defined', () => { - expect(new PublicMiddleware()).toBeDefined(); - }); -}); diff --git a/packages/nocodb/src/middlewares/public/public.middleware.ts b/packages/nocodb/src/middlewares/public/public.middleware.ts deleted file mode 100644 index cc95a349a4..0000000000 --- a/packages/nocodb/src/middlewares/public/public.middleware.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Injectable } from '@nestjs/common'; -import type { NestMiddleware } from '@nestjs/common'; - -@Injectable() -export class PublicMiddleware implements NestMiddleware { - use(req: any, res: any, next: () => void) { - // redirect root to dashboard - if (req.path === '/') { - const dashboardPath = process.env.NC_DASHBOARD_URL || '/dashboard'; - return res.redirect(dashboardPath); - } - next(); - } -}