processing / p5.js-web-editor

The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.38k stars 1.32k forks source link

Turning the environment variables more modular and easy to use with a Config Object export. #2806

Closed Zack-Dx closed 9 months ago

Zack-Dx commented 9 months ago

Increasing Access

This would help to make the code modular and increase its readability.

Feature enhancement details

Adding this file would help to organise them in a much better way, and we can simply use them just by their name instead of adding a suffix as a process.env everywhere so that we can just destructure the Config object on top and access them.

welcome[bot] commented 9 months ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

pankaj-2503 commented 9 months ago

I would like to contribute to this issue as it seems i can work on this by including .env file and writing variables into that so that we can use them for better code modularity and reusability

Zack-Dx commented 9 months ago

Assign me this.