From 2b23b43e21566eebbbff2eb4f523cb8a87a99121 Mon Sep 17 00:00:00 2001 From: K1NGD4VID Date: Tue, 14 Jul 2026 15:40:29 +0100 Subject: [PATCH] ci: provide NEXT_PUBLIC_*_CONTRACT_ID env vars for next build Next.js prerenders pages at build time; the LP, home, marketplace, dashboard, and SME pages instantiate SDK clients at module scope, throwing 'Contract ID is required' when the env vars are empty. Passing the same testnet IDs used in .env.example so the build step can complete. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a27a55..d7e7d9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,11 @@ jobs: - name: Build Packages (SDK & Web App) run: pnpm build + env: + NEXT_PUBLIC_REGISTRY_CONTRACT_ID: CABGWVIZFF62FG67ZGFEP67NEEY4WYTMFURDMFTKKNRDAFPKPOJDTN4C + NEXT_PUBLIC_INVOICE_CONTRACT_ID: CA4O3MR7LWHRSUDBNU6FY6UDFFYBN7TGBZXBDZB4OYYXFYXIFJ6RJF6B + NEXT_PUBLIC_POOL_CONTRACT_ID: CAKEWH7SJCXGV2MH2WZYIX3QDPTSSBQFXYVYBOWAGLNBBZMPLE2US6CS + NEXT_PUBLIC_ESCROW_CONTRACT_ID: CAJWGUKDTTC3SKN4RAAY72J4DVIIYSCFHX6GIMNTT22ABMISJK4GBCEH - name: Run Unit Tests run: pnpm test