Skip to content

Conversation

@bpierre
Copy link
Member

@bpierre bpierre commented Jan 19, 2026

bpierre and others added 7 commits January 17, 2026 03:16
- Use process.env instead of import.meta.env for TEMPO_ENV
- Remove import.meta.env fallback for INDEXER_API_KEY
- Add process.env fallback for PRESTO_RPC_AUTH in local dev
- Fix indentation in fetchAssets

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Wrap Layout with client providers instead of wrapping children inside

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add src/lib/server/env.ts with shared env utilities
- Extract getTempoEnv, getRpcAuth, getIndexerApiKey helpers
- Add getRpcUrl, shouldUseAuth, getChainId pure functions
- Update transactions, assets, access-keys, onramp server files
- Remove ~30 lines of duplicated cloudflare/process.env logic

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bpierre bpierre marked this pull request as ready for review January 19, 2026 22:16
@bpierre bpierre requested a review from struong January 19, 2026 22:16
@jxom jxom self-requested a review January 19, 2026 22:49
@github-actions
Copy link

github-actions bot commented Jan 20, 2026

Preview

1f66e8c · Jan 21, 1:36 AM UTC

Environment Status Preview
moderato ✓ Ready Open
presto ✓ Ready Open

bpierre and others added 6 commits January 20, 2026 17:08
* checks

* checks

* cloudflare

* refactor: use config module for onramp instead of direct env access

* feat: add useTestOtpCode config for onramp OTP bypass in dev/testnet

* refactor: extract env helpers for fulfill.ts

* chore: pnpm check

* chore: delete redundant rpc.ts

---------

Co-authored-by: Steven Truong <struong@users.noreply.github.com>
Co-authored-by: Pierre Bertet <hi@bpier.re>
@github-actions
Copy link

github-actions bot commented Jan 20, 2026

📦 Bundle Size Report

📉 Total: 2.8 MB (-533.1 KB (-15.5%))

Metric Current Baseline Delta
Raw 2.8 MB 3.4 MB -533.1 KB (-15.5%)
Gzip 769.0 KB 959.7 KB -190.7 KB (-19.9%)
Brotli 665.5 KB 821.1 KB -155.6 KB (-19.0%)
Top 10 chunks
Chunk Size Gzip
index.js 625.3 KB 118.1 KB
assets/tempoModerato-tBF-AZMI.js 625.1 KB 166.6 KB
assets/_address_-DZpKfJR8.js 498.7 KB 130.9 KB
assets/i18n-C4rpSwxX.js 214.5 KB 75.3 KB
assets/index-YdAtUTap.js 206.6 KB 61.3 KB
assets/index-DGKplKYJ.js 143.0 KB 37.4 KB
assets/globe-FfbBM--t.js 117.0 KB 37.0 KB
assets/activity-context-Cs2LNNOH.js 83.8 KB 23.1 KB
assets/QueryClientProvider-BKYcm_i-.js 77.9 KB 24.9 KB
assets/cookie-DNoMVwl6.js 73.8 KB 18.8 KB

Copy link
Contributor

@struong struong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛳️

## Summary

- Consolidate 4 deploy workflows into 2 using matrix strategy
- Create reusable deploy action shared by preview and prod
- Fix PR comment race condition (was showing only one env)
- Remove duplicate verify run on PRs
- Remove build from verify (deploys build anyway) - saves 1 build cycle
- Improve deployment table format

## Before/After

**Before:**
- 4 workflows + 1 action (436 lines)
- Verify runs twice on PRs
- 3 builds per PR (verify + 2 deploys)
- Race condition on PR comment

**After:**
- 2 workflows + 1 action (177 lines)
- Verify runs once
- 2 builds per PR (deploy only)
- Single PR comment with both envs
@bpierre bpierre merged commit 54d7e02 into main Jan 21, 2026
5 checks passed
@bpierre bpierre deleted the feat/waku-migration branch January 21, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants