Skip to content

Commit

Permalink
add blog as public route (Codehagen#187)
Browse files Browse the repository at this point in the history
* add blog as public route

* readded clerkClient
  • Loading branch information
itsanishjain authored Mar 3, 2024
1 parent 3e4e22a commit 12281b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/app/(marketing)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function BlogPage() {
});

return (
<main>
<main className="mx-auto max-w-6xl">
<BlogPosts posts={posts} />
</main>
);
Expand Down
1 change: 1 addition & 0 deletions apps/www/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default authMiddleware({
"/pricing(.*)",
"/privacy(.*)",
"/api(.*)",
"/blog(.*)",
],
async afterAuth(auth, req) {
if (auth.isPublicRoute) {
Expand Down

0 comments on commit 12281b2

Please sign in to comment.