diff --git a/.gitignore b/.gitignore index a484ab2..fa65296 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,7 @@ supabase/.temp/ .history/ # Source images (originals before optimization) -source-images/ \ No newline at end of file +source-images/ + +# Auto Claude data directory +.auto-claude/ diff --git a/src/middleware.ts b/src/middleware.ts index b4fda88..2809514 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -12,7 +12,7 @@ const intlMiddleware = createMiddleware({ export async function middleware(request: NextRequest) { // Check if the request is for a protected dashboard route const pathname = request.nextUrl.pathname; - const isDashboardRoute = pathname.match(/^\/(de|en|sr)\/dashboard/); + const isDashboardRoute = pathname.match(/^\/(de|en|sr)\/dashboard(\/|$)/); if (isDashboardRoute) { // Create Supabase client and check authentication