Feature Name: (fill me in with a unique identity, myawesomefeature)
Type: (feature, enhancement)
Start Date: (fill me in with today's date, YYYY-MM-DD)
Author: (your names)
// TRPC API endpoint | |
// src/app/api/trpc/[trpc]/route.ts | |
import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; | |
import { type NextRequest } from "next/server"; | |
import { env } from "~/env"; | |
import { appRouter } from "~/server/api/root"; | |
import { createTRPCContext } from "~/server/api/trpc"; | |
import { getAuth } from "@clerk/nextjs/server"; |