mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-14 14:13:45 -06:00
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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user