From 2b50af133d6f14df87093048f882e870fa67c7ba Mon Sep 17 00:00:00 2001 From: BrickheadJohnny Date: Mon, 25 Nov 2024 18:21:35 +0100 Subject: [PATCH] fix: update environment variables --- src/config/pinata.server.ts | 2 +- src/lib/env.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/pinata.server.ts b/src/config/pinata.server.ts index 6c1d2f7951..24312b925e 100644 --- a/src/config/pinata.server.ts +++ b/src/config/pinata.server.ts @@ -4,6 +4,6 @@ import { env } from "@/lib/env"; import { PinataSDK } from "pinata-web3"; export const pinata = new PinataSDK({ - pinataJwt: `${env.PINATA_JWT}`, + pinataJwt: `${env.PINATA_ADMIN_JWT}`, pinataGateway: `${env.NEXT_PUBLIC_PINATA_GATEWAY_URL}`, }); diff --git a/src/lib/env.ts b/src/lib/env.ts index e9027a7e48..3cf0233dde 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -3,7 +3,7 @@ import { z } from "zod"; export const env = createEnv({ server: { - PINATA_JWT: z.string(), + PINATA_ADMIN_JWT: z.string(), }, client: { NEXT_PUBLIC_API: z.string(), @@ -11,12 +11,12 @@ export const env = createEnv({ NEXT_PUBLIC_PINATA_GATEWAY_URL: z.string(), }, runtimeEnv: { - NEXT_PUBLIC_API: process.env.NEXT_PUBLIC_API, + NEXT_PUBLIC_API: process.env.NEXT_PUBLIC_API_V3, NEXT_PUBLIC_URL: process.env.NODE_ENV === "production" - ? process.env.NEXT_PUBLIC_URL + ? process.env.NEXT_PUBLIC_VERCEL_URL : "http://localhost", - PINATA_JWT: process.env.PINATA_JWT, + PINATA_ADMIN_JWT: process.env.PINATA_ADMIN_JWT, NEXT_PUBLIC_PINATA_GATEWAY_URL: process.env.NEXT_PUBLIC_PINATA_GATEWAY_URL, }, });