pixelastic / norska

🏔️ Custom SSG using Pug, Webpack, PostCSS and Tailwind.
https://projects.pixelastic.com/norska/
MIT License
8 stars 0 forks source link

norska init fails with new Netlify websites #166

Open pixelastic opened 1 year ago

pixelastic commented 1 year ago

Netlify updated their API to reflect the way one can update a site ENV variables. Previously (what they refer to as the "Classic env variable experience", one could update a site ENV variables through the Site endpoint (what norska-netlify uses).

It now has a specific /env endpoint to configure ENV variables. Note that the new experience is richer: ENV variables can be defined at the account level as well as site level, and can be scoped to deploy preview/production/etc.

Norska should be updated to:

Temporary workaround: Manually update the env variables through the UI. Check the configureSite in norska-netlify/lib/enable.js. It creates the newVars variable that contain the list of all env variables to add.

Source: https://open-api.netlify.com/#tag/environmentVariables/operation/createEnvVars