I am wondering if there is a way that I can load my .env file into my .idx/dev.nix file without adding them all verbosely as there is sensitive information in there and I hope to source control my .idx/dev.nix file in the future.
This is so that my React project can be previewed in the editor.
I have tried sourcing the .env file in the preview command as such:
Starting the development server...
Compiled successfully!
You can now view obsidian_rhythm_ii_frontend in the browser.
Local: https://localhost:443
On Your Network: https://10.88.0.3:443
Note that the development build is not optimized.
To create a production build, use yarn build.
webpack compiled successfully
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
No issues found.
Compiling...
Compiled successfully!
webpack compiled successfully
Compiling...
No issues found.
Compiled successfully!
However, now it seems to be in a restart loop
The “Starting Preview” keeps spinning and when I go to the webpage there is no output and the page keeps refreshing periodically (approx every 3 seconds)