Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Transfered environment variables from package.json to .env file #5169

Closed
wants to merge 0 commits into from

Conversation

swisstackle
Copy link
Contributor

@swisstackle swisstackle commented Jun 2, 2022

As of #5134 I was asked to create a PR to push the changes I have made to resolve the Dashboard Windows capability issues.

Perhaps we could just write "set DISABLE_ESLINT_PLUGIN=true && set SKIP_PREFLIGHT_CHECK=true && craco build" as this is the commandline syntax for Windows but I think that an env file is easier and cross platform compatible.

@benjamincburns

Copy link
Contributor

@benjamincburns benjamincburns left a comment

Choose a reason for hiding this comment

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

Thanks for this change, @swisstackle!

Copy link
Contributor

@benjamincburns benjamincburns left a comment

Choose a reason for hiding this comment

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

Actually would you mind changing this to use cross-env instead of the .env file?

This is because in the cases where we tend to use .env files we tend to use them for local-only config that shouldn't be committed. Using such a file here in another context might introduce a future security problem where someone thinks they've added a secret to their local .env and winds up committing it.

Also thanks to @michaeljohnbennett for catching this on review!

@swisstackle
Copy link
Contributor Author

swisstackle commented Jun 3, 2022

@benjamincburns Ok will do. Should I add cross-env as a dependency with yarn in /truffle or only in /truffle/packages/dashboard/package.json?

@benjamincburns
Copy link
Contributor

@benjamincburns Ok will do. Should I add cross-env as a dependency with yarn in /truffle or only in /truffle/packages/dashboard/package.json?

Just in the dashboard package is fine, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants