Continued reformat, switch all relative imports to alias as available

Switch to pure non-expression if in next.config.mjs
This commit is contained in:
2024-12-19 17:00:50 -06:00
parent 35128ec208
commit bc04acda7b
18 changed files with 32 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
import { router } from "../trpc";
import { exampleRouter } from "./example";
import { exampleRouter } from "@/server/trpc/router/example";
import { router } from "@/server/trpc/trpc";
export const appRouter = router({
example: exampleRouter,

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
import { router, publicProcedure } from "../trpc";
import { router, publicProcedure } from "@/server/trpc/trpc";
export const exampleRouter = router({
hello: publicProcedure

View File

@@ -1,8 +1,7 @@
import { Context } from "@/server/trpc/context";
import { initTRPC } from "@trpc/server";
import superjson from "superjson";
import { type Context } from "./context";
const t = initTRPC.context<Context>().create({
transformer: superjson,
errorFormatter({ shape }) {