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

Fix getting env variables from import.meta.env.SOME_KEY #400

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

mellson
Copy link
Member

@mellson mellson commented Nov 14, 2023

Follow-up fix for #397.

I forgot that the Vite syntax is import.meta.env.SOME_KEY - we didn't handle the env part using the latest version. This PR reverts to using a Regex to grab the env variable name. Tested and works with both process.env.SOME_KEY and import.meta.env.SOME_KEY.

Copy link

changeset-bot bot commented Nov 14, 2023

🦋 Changeset detected

Latest commit: 61ba4bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@xstate/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mellson mellson merged commit bcaeedc into main Nov 14, 2023
1 check passed
@mellson mellson deleted the mellson/fix-getting-env-variable-name branch November 14, 2023 15:28
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.

2 participants