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: fix env variables issue #157

Merged
merged 3 commits into from
Jul 13, 2022
Merged

fix: fix env variables issue #157

merged 3 commits into from
Jul 13, 2022

Conversation

EiffelFly
Copy link
Member

Because

  • When evaluating the env like
if (process.env.NEXT_PUBLIC_CONSOLE_BASE_URL === "hi"){}

it will affect by the webpack dead code elimination

This commit

  • Use window.location.href to cope with this evaluation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant