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

Reference Transferwise Environment Variable directly without Destructuring #6441

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

SudharakaP
Copy link
Member

As pointed out by the discussion here, #6418 (comment) there seems to be some problems with Webpacks environment variable de-structuring; webpack/webpack#5392.

This PR corrects that. I did some search on a cleaner approach and although the official documentation doesn't seem to mention that there's an idea on this post; https://prateeksurana.me/blog/using-environment-variables-with-webpack/#accessing-environment-variables-via-webpack which is to use a separate file for the environment variables, and refer them from that file. We can employ this approach if there's no objection. 🤔

@znarf @Betree

@SudharakaP SudharakaP requested review from znarf and Betree June 1, 2021 13:54
@SudharakaP SudharakaP self-assigned this Jun 1, 2021
@vercel
Copy link

vercel bot commented Jun 1, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/opencollective/opencollective-frontend/GzSKvr81K4MAh79HCQecYkdNb6S5
✅ Preview: https://opencollective-git-feat-correct-webpack-env-variable-ref-4c7f0e.vercel.app

@render
Copy link

render bot commented Jun 1, 2021

@SudharakaP SudharakaP changed the title Reference Transferwise Environment Variable directly with Destructuring Reference Transferwise Environment Variable directly without Destructuring Jun 1, 2021
Copy link
Member

@znarf znarf left a comment

Choose a reason for hiding this comment

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

Looking good.

No need to do bigger changes at this stage for me.

@SudharakaP
Copy link
Member Author

Looking good.

No need to do bigger changes at this stage for me.

Thanks for the review. 😄

@SudharakaP SudharakaP merged commit 64b442b into main Jun 7, 2021
@SudharakaP SudharakaP deleted the feat/correct-webpack-env-variable-reference branch June 7, 2021 12:18
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.

None yet

2 participants