Skip to content

feat(data-layer): isolate env vars into dedicated .env file#17270

Merged
wackerow merged 1 commit into
devfrom
feat/data-layer-env-isolation
Feb 20, 2026
Merged

feat(data-layer): isolate env vars into dedicated .env file#17270
wackerow merged 1 commit into
devfrom
feat/data-layer-env-isolation

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Feb 11, 2026

Summary

  • Create src/data-layer/.env.example with all data-layer/Trigger.dev environment variables
  • Update trigger.dev scripts to use src/data-layer/.env instead of .env.local
  • Move CoinGecko constants from src/lib/constants.ts to src/data-layer/fetchers/fetchStablecoinsData.ts (only used there)
  • Clean up root .env.example by removing data-layer only vars and adding section headers

Test plan

  • Verify pnpm trigger:dev works with src/data-layer/.env
  • Verify main app builds without CoinGecko env var in root .env
  • Verify data-layer tasks still function correctly

Move data-layer specific environment variables to src/data-layer/.env.example
for cleaner separation between the main Next.js app and Trigger.dev tasks.

Changes:
- Create src/data-layer/.env.example with all data-layer env vars
- Update package.json trigger scripts to use src/data-layer/.env
- Move CoinGecko constants from lib/constants.ts to fetchStablecoinsData.ts
- Clean up root .env.example, removing data-layer only vars
- Add section headers and cross-references between env files
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 11, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit a053294
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/698c61a37e6e100008794567
😎 Deploy Preview https://deploy-preview-17270.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 57 (🟢 up 2 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project labels Feb 11, 2026
@wackerow wackerow merged commit 8584093 into dev Feb 20, 2026
8 checks passed
@wackerow wackerow deleted the feat/data-layer-env-isolation branch February 20, 2026 19:19
pettinarip added a commit that referenced this pull request Feb 23, 2026
Update documentation and scripts to reflect the data-layer environment
variable isolation introduced in PR #17270. Changes .env to .env.local
for consistency with Next.js conventions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies 📦 Changes related to project dependencies tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants