Skip to content

Commit c05ced8

Browse files
committed
small edits
1 parent e178a00 commit c05ced8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/middleware.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export default clerkMiddleware(async (auth, req) => {
2020
export const config = {
2121
matcher: [
2222
"/",
23+
// Skip Next.js internals and all static files, unless found in search params
2324
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
25+
// // Always run for API routes
26+
// "/(api|trpc)(.*)",
27+
// Ignore trpc routes because they are handled by the server
2428
"/api(.*)",
2529
],
2630
}

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)