Skip to content

Commit 7ba1be9

Browse files
committed
small edits
1 parent e178a00 commit 7ba1be9

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/middleware.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ export default clerkMiddleware(async (auth, req) => {
1919

2020
export const config = {
2121
matcher: [
22-
"/",
22+
// Skip Next.js internals and all static files, unless found in search params
2323
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
24+
// // Always run for API routes
25+
// "/(api|trpc)(.*)",
26+
// Ignore trpc routes because they are handled by the server
2427
"/api(.*)",
2528
],
2629
}

src/server/api/routers/projects/get-projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { TRPCError } from "@trpc/server"
22
import { Ratelimit } from "@upstash/ratelimit"
3-
import { and, arrayContains, eq, sql } from "drizzle-orm"
3+
import { and, arrayContains, eq } from "drizzle-orm"
44
import { z } from "zod"
55

66
import { protectedRatedProcedure, publicRatedProcedure } from "~/server/api/trpc"

0 commit comments

Comments
 (0)