Skip to content

Commit 97f69a2

Browse files
authored
fix(redirects): update middleware to allow access to /chat regardless of auth status (#1516)
1 parent 1a2c404 commit 97f69a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/sim/middleware.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ export async function middleware(request: NextRequest) {
147147
return NextResponse.next()
148148
}
149149

150+
if (url.pathname.startsWith('/chat/')) {
151+
return NextResponse.next()
152+
}
153+
150154
if (url.pathname.startsWith('/workspace')) {
151155
if (!hasActiveSession) {
152156
return NextResponse.redirect(new URL('/login', request.url))

0 commit comments

Comments
 (0)