Skip to content

fix: Apply expanded env to process.env - #2267

Merged
aklinker1 merged 2 commits into
mainfrom
apply-env
Apr 14, 2026
Merged

aklinker1 merged 2 commits into
mainfrom
apply-env

Conversation

@aklinker1

@aklinker1 aklinker1 commented Apr 14, 2026 •

Copy link
Copy Markdown
Member

Overview

See #2266 (comment) for details, I'm not gonna re-explain it here.

TLDR: We want to apply .env vars to process.env so they are available in modules, hooks, and other commands that run after the env vars are loaded in the node env.

Manual Testing

N/A - not something that can be tested easily.

Related Issue

This closes #2266

@netlify

netlify Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 8252689
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/69de4f4e8d035a000804e4c5
😎 Deploy Preview https://deploy-preview-2267--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@aklinker1
aklinker1 marked this pull request as draft April 14, 2026 13:51
@aklinker1 aklinker1 self-assigned this Apr 14, 2026
@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Apr 14, 2026
@codecov

codecov Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.74%. Comparing base (e67bac0) to head (8252689).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2267      +/-   ##
==========================================
- Coverage   79.74%   79.74%   -0.01%     
==========================================
  Files         130      130              
  Lines        3812     3811       -1     
  Branches      864      864              
==========================================
- Hits         3040     3039       -1     
  Misses        688      688              
  Partials       84       84              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2267

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2267

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2267

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2267

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2267

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2267

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2267

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2267

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2267

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2267

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2267

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2267

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2267

wxt

npm i https://pkg.pr.new/wxt@2267

commit: 8252689

@aklinker1
aklinker1 marked this pull request as ready for review April 14, 2026 14:30
@aklinker1
aklinker1 merged commit bec4b73 into main Apr 14, 2026
19 checks passed
@aklinker1
aklinker1 deleted the apply-env branch April 14, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.env file is no longer auto-imported

1 participant