Skip to content

Commit

Permalink
Shrugs (#113)
Browse files Browse the repository at this point in the history
* images and ads.txt public routes

* update canaries
  • Loading branch information
thatguyinabeanie authored Dec 25, 2024
1 parent 0ec7044 commit 82fd332
Show file tree
Hide file tree
Showing 2 changed files with 287 additions and 195 deletions.
8 changes: 7 additions & 1 deletion apps/nextjs/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ export const config = {
// "/organizations/:orgSlug/tournaments/:tournamentId/register",
// ]);

const publicRoutes = createRouteMatcher(["/", "/sign-in(.*)", "/sign-up(.*)"]);
const publicRoutes = createRouteMatcher([
"/",
"/sign-in(.*)",
"/sign-up(.*)",
"/images/(.*)",
"/ads.txt",
]);

export default clerkMiddleware(async (auth, request) => {
if (!publicRoutes(request)) {
Expand Down
Loading

1 comment on commit 82fd332

@vercel
Copy link

@vercel vercel bot commented on 82fd332 Dec 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.