From 5015ad9b89ae27657d97c3ea0713f1877d355956 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 18 Dec 2024 15:37:26 -0500 Subject: [PATCH 1/2] feat: add the paymaster policy id to required env vars for UI demo --- examples/ui-demo/.env.example | 3 ++- examples/ui-demo/env.mjs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/ui-demo/.env.example b/examples/ui-demo/.env.example index 8d3729bf41..8fcd700662 100644 --- a/examples/ui-demo/.env.example +++ b/examples/ui-demo/.env.example @@ -1,3 +1,4 @@ API_KEY="" ALCHEMY_API_URL="https://api.g.alchemy.com" -ALCHEMY_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/" \ No newline at end of file +ALCHEMY_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/" +NEXT_PUBLIC_PAYMASTER_POLICY_ID="" \ No newline at end of file diff --git a/examples/ui-demo/env.mjs b/examples/ui-demo/env.mjs index c2014c028e..ab5fdc30ef 100644 --- a/examples/ui-demo/env.mjs +++ b/examples/ui-demo/env.mjs @@ -18,7 +18,9 @@ export const env = createEnv({ * isn't built with invalid env vars. To expose them to the client, prefix them with * `NEXT_PUBLIC_`. */ - client: {}, + client: { + NEXT_PUBLIC_PAYMASTER_POLICY_ID: z.string(), + }, /** * You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g. From 5447e86f2b7fe7af408703591547ea5698dcdf52 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 18 Dec 2024 16:57:19 -0500 Subject: [PATCH 2/2] chore: add env var to turbo --- examples/ui-demo/turbo.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ui-demo/turbo.json b/examples/ui-demo/turbo.json index cdd35e71ea..ffdea5e02f 100644 --- a/examples/ui-demo/turbo.json +++ b/examples/ui-demo/turbo.json @@ -4,7 +4,7 @@ "build": { "dependsOn": ["^build"], "outputs": [".next/**", "!.next/cache/**"], - "env": ["API_KEY", "ALCHEMY_API_URL", "ALCHEMY_RPC_URL"] + "env": ["API_KEY", "ALCHEMY_API_URL", "ALCHEMY_RPC_URL", "NEXT_PUBLIC_PAYMASTER_POLICY_ID"] }, "dev": { "dependsOn": ["^build"],