Thanks, i could have thought about the environment variables
Sure, my usecase is this: I am working on lowcode solution for developing react apps. We decided for tight integration with Netlify, basic workflow should be:
Deploy your CRA app on Netlify with our custom plugin and you’ll get live editable react-app with vscode in separate iframe. We transpile and bundle the code in the background and refresh your app instantaneously. You are abble to edit your app visualy (clone, remove elements, inline edit labels) or edit the code inside vscode editor right on the deployed webpage.
However, if you edit your app in the browser, you want to access the edited source code, right? In first iteration you are able to download sources as .zip, but we want to integrate with Github/Gitlab API.
This could be done quite easily, but we need access token.
It would be ideal if we could obtain the token from Netlify build environment and therefore user wouldn’t have to go through another round of authentication. With this token user would be able to push the source code right into the repository from which the app was deployed
Is there any way how we could achieve this?