netlify-plugin-vgs's People
netlify-plugin-vgs's Issues
VGS_ROUTE_ID should have been created also as CREATE_REACT_APP_VGS_ROUTE_ID, VUE_APP_VGS_ROUTE_ID etc.
If I want to read the environment variables in like this:
const { REACT_APP_VGS_VAULT_ID, VGS_ROUTE_ID } = process.env;
It's not going to work. VAULT_ID I've converted to create react app compatible version but VGS_ROUTE_ID I can't because it calculated during build time.
Cannot update environment variable on netlify site during build time
`❯ Loading plugins
- @vgs/[email protected] from Netlify app and package.json
@vgs/netlify-plugin-vgs (onPreBuild event)
────────────────────────────────────────────────────────────────
[vgs-plugin] onPreBuild, vaultId: xxx
[vgs-plugin] collectRouteExists: true
[vgs-plugin] netlify updateSite
[vgs-plugin] adding env variable VGS_ROUTE_ID xxx
[vgs-plugin] netlify updateSite error: TextHTTPError: Bad Request
at parseJsonResponse (file:///C:/Users/arpad/OneDrive/Asztali%20g%C3%A9p/react/predictor_web_ui/node_modules/netlify/src/methods/response.js:37:35)
at parseResponse (file:///C:/Users/arpad/OneDrive/Asztali%20g%C3%A9p/react/predictor_web_ui/node_modules/netlify/src/methods/response.js:9:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async callMethod (file:///C:/Users/arpad/OneDrive/Asztali%20g%C3%A9p/react/predictor_web_ui/node_modules/netlify/src/methods/index.js:31:26)
at async onPreBuild (file:///C:/Users/arpad/OneDrive/Asztali%20g%C3%A9p/react/predictor_web_ui/node_modules/@vgs/netlify-plugin-vgs/index.js:30:7)
at async Object.run (file:///C:/.npm-global/node_modules/netlify-cli/node_modules/@netlify/build/lib/plugins/child/run.js:14:5)
at async handleEvent (file:///C:/.npm-global/node_modules/netlify-cli/node_modules/@netlify/build/lib/plugins/child/main.js:28:42)
at async process. (file:///C:/.npm-global/node_modules/netlify-cli/node_modules/@netlify/build/lib/plugins/ipc.js:91:24) {
status: 400,
data: 'Site using new environment variables experience. Cannot update environment variables via Sites API. See https://open-api.netlify.com/#tag/environmentVariables'
}
[vgs-plugin] netlify updateSite finished!
(@vgs/netlify-plugin-vgs onPreBuild completed in 3.7s)`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.