fix: resolve all lint errors
This commit is contained in:
+2
-1
@@ -6,5 +6,6 @@ import type { App } from "@/app/api/[[...slugs]]/route"
|
||||
// standard Next.js server-vs-client guard.
|
||||
export const api =
|
||||
typeof window === "undefined"
|
||||
? treaty((require("../../app/api/[[...slugs]]/route") as { app: App }).app).api
|
||||
? // eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
treaty((require("../../app/api/[[...slugs]]/route") as { app: App }).app).api
|
||||
: treaty<App>(process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000").api
|
||||
|
||||
Reference in New Issue
Block a user