From 623a25dcf58873fe62c82c6018a4f40e53813839 Mon Sep 17 00:00:00 2001 From: Sam Peters Date: Wed, 6 Dec 2023 13:05:09 -0600 Subject: [PATCH] chore(pay): update default env variables --- apps/pay/env.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/pay/env.ts b/apps/pay/env.ts index 843f776331..ca8e06f8cf 100644 --- a/apps/pay/env.ts +++ b/apps/pay/env.ts @@ -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(), @@ -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,