Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(nuxt): expose import.meta.envName#34844

Open
onmax wants to merge 2 commits intonuxt:4.xnuxt/nuxt:4.xfrom
onmax:feat/import-meta-env-name-4xonmax/nuxt:feat/import-meta-env-name-4xCopy head branch name to clipboard
Open

feat(nuxt): expose import.meta.envName#34844
onmax wants to merge 2 commits intonuxt:4.xnuxt/nuxt:4.xfrom
onmax:feat/import-meta-env-name-4xonmax/nuxt:feat/import-meta-env-name-4xCopy head branch name to clipboard

Conversation

@onmax
Copy link
Copy Markdown
Contributor

@onmax onmax commented Apr 22, 2026

This exposes the resolved Nuxt config environment as import.meta.envName in app runtime code for both Vite and webpack builds. It also adds runtime typing and updates the v4 import-meta documentation.

The change includes focused coverage for the runtime value in the basic fixture and for custom envName resolution in the config loader tests.

Closes #30776
related #34843

@onmax onmax requested a review from danielroe as a code owner April 22, 2026 07:04
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added agentscan:mixed-signals 4.x ✨ enhancement New feature or improvement to existing functionality labels Apr 22, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 22, 2026

Open in StackBlitz

@nuxt/kit

npm i https://pkg.pr.new/@nuxt/kit@34844

@nuxt/nitro-server

npm i https://pkg.pr.new/@nuxt/nitro-server@34844

nuxt

npm i https://pkg.pr.new/nuxt@34844

@nuxt/rspack-builder

npm i https://pkg.pr.new/@nuxt/rspack-builder@34844

@nuxt/schema

npm i https://pkg.pr.new/@nuxt/schema@34844

@nuxt/vite-builder

npm i https://pkg.pr.new/@nuxt/vite-builder@34844

@nuxt/webpack-builder

npm i https://pkg.pr.new/@nuxt/webpack-builder@34844

commit: cda09d7

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 22, 2026

Merging this PR will not alter performance

✅ 20 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing onmax:feat/import-meta-env-name-4x (cda09d7) with 4.x (ff42fe2)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x agentscan:mixed-signals ✨ enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.