Skip to content

Commit

Permalink
chore(pay): update default env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleSamtoshi committed Dec 6, 2023
1 parent fff6781 commit 623a25d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/pay/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { z } from "zod"

export const env = createEnv({
server: {
CORE_GQL_URL_INTRANET: z.string(), // Use intranet URL to preserve tracing headers
PAY_URL: z.string(),
CORE_GQL_URL_INTRANET: z.string().default("http://localhost:4455/graphql"), // Use intranet URL to preserve tracing headers
PAY_URL: z.string().default("http://localhost:3002"),
NOSTR_PUBKEY: z.string().optional(),
REDIS_PASSWORD: z.string().optional(),
REDIS_MASTER_NAME: z.string().optional(),
Expand All @@ -13,9 +13,11 @@ export const env = createEnv({
REDIS_2_DNS: z.string().optional(),
},
client: {
NEXT_PUBLIC_CORE_GQL_URL: z.string(),
NEXT_PUBLIC_CORE_GQL_WEB_SOCKET_URL: z.string(),
NEXT_PUBLIC_PAY_DOMAIN: z.string(),
NEXT_PUBLIC_CORE_GQL_URL: z.string().default("http://localhost:4455/graphql"),
NEXT_PUBLIC_CORE_GQL_WEB_SOCKET_URL: z
.string()
.default("ws://localhost:4455/graphql"),
NEXT_PUBLIC_PAY_DOMAIN: z.string().default("localhost:3002"),
},
runtimeEnv: {
CORE_GQL_URL_INTRANET: process.env.CORE_GQL_URL_INTRANET,
Expand Down

0 comments on commit 623a25d

Please sign in to comment.