Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bmorrisondev/70b44805276a97787a9a6bce1a2140c1 to your computer and use it in GitHub Desktop.
Save bmorrisondev/70b44805276a97787a9a6bce1a2140c1 to your computer and use it in GitHub Desktop.
export const config = {
matcher: [
// Skip Next.js internals and all static files, unless found in search params
'/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)',
// Always run for API routes
'/(api|trpc)(.*)',
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment