Skip to content

Commit

Permalink
feat: add the paymaster policy id to required env vars for UI demo
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Dec 18, 2024
1 parent 6ebfca5 commit 5015ad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/ui-demo/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
API_KEY="<API_KEY>"
ALCHEMY_API_URL="https://api.g.alchemy.com"
ALCHEMY_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/<API_KEY>"
ALCHEMY_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/<API_KEY>"
NEXT_PUBLIC_PAYMASTER_POLICY_ID="<POLICY_ID>"
4 changes: 3 additions & 1 deletion examples/ui-demo/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5015ad9

Please sign in to comment.