FEAT(jotion): redirect root path to /home
Some checks failed
Build Docker Image / build-and-push (push) Has been cancelled
CI / lint-and-build (push) Has been cancelled

- Add redirect from / to /home in middleware
- Remove / from publicPaths list
This commit is contained in:
2026-01-10 02:48:30 +09:00
parent d445f17545
commit 1ceef3f11c

View File

@@ -4,9 +4,14 @@ import { verifyToken } from './src/shared/lib/auth'
export function middleware(request: NextRequest) {
const { pathname } = request.nextUrl
// Redirect root path to /home
if (pathname === '/') {
const url = new URL('/home', request.url)
return NextResponse.redirect(url)
}
// Public paths that don't require authentication
const publicPaths = [
'/',
'/home',
'/home/signIn',
'/home/signUp',