chore: make the localhost port in the trpc Provider dynamic to work on ports other than 3000
This commit is contained in:
6
env/client.ts
vendored
6
env/client.ts
vendored
@@ -1,8 +1,8 @@
|
||||
import { createEnv } from "@t3-oss/env-nextjs"
|
||||
// import { z } from "zod";
|
||||
import { z } from "zod"
|
||||
|
||||
export const env = createEnv({
|
||||
client: {},
|
||||
client: { NEXT_PUBLIC_PORT: z.string().optional() },
|
||||
emptyStringAsUndefined: true,
|
||||
runtimeEnv: {},
|
||||
runtimeEnv: { NEXT_PUBLIC_PORT: process.env.PORT },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user