| 123456789101112131415161718 |
- import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware";
- export default withAuth(
- async function middleware() {
- },
- {
- isReturnToCurrentPage: true,
- // Middleware still runs on all routes, but doesn't protect the blog route
- publicPaths: ["/"],
- }
- );
- export const config = {
- matcher: [
- // Run on everything but Next internals and static files
- '/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)',
- ],
- };
|