Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention import.meta.env for vite builder #18650

Merged
merged 1 commit into from
Jul 8, 2022
Merged

Mention import.meta.env for vite builder #18650

merged 1 commit into from
Jul 8, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Jul 7, 2022

Issue:

What I did

As discussed in discord, this adds a mention in the documentation that Vite makes environment variables available under import.meta.env rather than process.env.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@nx-cloud
Copy link

nx-cloud bot commented Jul 7, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 97ef0cd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@IanVS IanVS changed the title Mention import.meta.env` for vite builder Mention import.meta.env for vite builder Jul 7, 2022
@jonniebigodes jonniebigodes added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Jul 8, 2022
Copy link
Contributor

@jonniebigodes jonniebigodes left a comment

Choose a reason for hiding this comment

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

@IanVS thanks for taking the time and effort to make this pull request and address the Discord thread, appreciate it 🙏 !

On my end it's all good, going to merge this.

Hope you have a great day.

Stay safe

@jonniebigodes jonniebigodes merged commit 7319bf4 into next Jul 8, 2022
@jonniebigodes jonniebigodes deleted the env-vars-vite branch July 8, 2022 19:28
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 26, 2022
shilman pushed a commit that referenced this pull request Jul 26, 2022
Mention import.meta.env for vite builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder-vite documentation patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants