Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add blog as public route #187

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add blog as public route
  • Loading branch information
itsanishjain committed Mar 1, 2024
commit e863d1a8f012653d339bdc65aaaae780bf36cdad
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
3 changes: 2 additions & 1 deletion apps/www/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextResponse } from "next/server";
import { authMiddleware, clerkClient } from "@clerk/nextjs";
import { authMiddleware } from "@clerk/nextjs";
itsanishjain marked this conversation as resolved.
Show resolved Hide resolved

export default authMiddleware({
signInUrl: "/signin",
Expand All @@ -14,6 +14,7 @@ export default authMiddleware({
"/pricing(.*)",
"/privacy(.*)",
"/api(.*)",
"/blog(.*)",
],
async afterAuth(auth, req) {
if (auth.isPublicRoute) {
Expand Down