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

feat: properly load env vars in create-fuels template, and add docs for fuels CLI #2051

Merged
merged 6 commits into from Apr 15, 2024

Conversation

Dhaiwat10
Copy link
Member

@Dhaiwat10 Dhaiwat10 commented Apr 14, 2024

Summary

This PR introduces these changes:

  1. The fuels.config.ts file provided by the create-fuels template now makes use of dotenv to properly load environment variables from .env files.
  2. There is new added documentation around how to read environment variables in a fuels.config.ts file.

Closes #2036

@Dhaiwat10 Dhaiwat10 added the bug label Apr 14, 2024
@Dhaiwat10 Dhaiwat10 self-assigned this Apr 14, 2024
Copy link
Contributor

github-actions bot commented Apr 14, 2024

This PR is published in NPM with version 0.0.0-pr-2051-20240414141631

@Dhaiwat10 Dhaiwat10 changed the title fix: add the ability to read process.env variables in the fuels.config.ts file fix: properly load env vars in create-fuels template, and add docs for fuels CLI Apr 14, 2024
@Dhaiwat10 Dhaiwat10 marked this pull request as ready for review April 14, 2024 14:19
@Dhaiwat10 Dhaiwat10 enabled auto-merge (squash) April 14, 2024 14:19
Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
79.38%(-0.01%) 69.67%(-0.06%) 77.33%(+0%) 79.53%(-0.01%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 ✨ apps/create-fuels-counter-guide/fuels.config.ts 0%
(+0%)
0%
(+0%)
100%
(+100%)
0%
(+0%)

@Dhaiwat10 Dhaiwat10 merged commit 40622a5 into master Apr 15, 2024
15 checks passed
@Dhaiwat10 Dhaiwat10 deleted the dp/fix-fuels-config-env-load branch April 15, 2024 08:45
@Dhaiwat10 Dhaiwat10 changed the title fix: properly load env vars in create-fuels template, and add docs for fuels CLI feat: properly load env vars in create-fuels template, and add docs for fuels CLI Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The fuels.config.ts file cannot read process.env variables
3 participants