Closed meeh0w closed 2 years ago
We can use a plugin to make env variables accessible for Gatsby without modifying webportal's docker-compose file, similar to what `website` repo is doing: * plugin: gatsby-plugin-env-variables * reference: [https://github.com/SkynetLabs/webportal-website-skynetlabs/blob/main/gatsby-config.js#L45-L50](https://github.com/SkynetLabs/webportal-website-skynetlabs/blob/main/gatsby-config.js#L45-L50)
Deployed to https://2006a5nglss235jvulhsr376cpuf0gs1lhnt9dci0qbg8tkkh65lgd8.siasky.net/
Skylink: sia://EABlFvCvOCGWf_VjzYzmZnzwQ4Gsb9S1kgaXBHaUiYtYNQ
Overview
gatsby-plugin-env-variables
plugin so we don't need to worry about proxying webportal's env variables withGATSBY_
prefix to make them available for Gatsby app.✅ Tested on dev3.