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.