Netlify/0.8.5/CreateOrUpdateVariables

1.0.2Last update Jan 10, 2025
by@Codemod
Netlify/sdk
migration

This codemod changes createOrUpdateVariables to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.

Before

createOrUpdateVariables(accountId, siteId, variables);

After

createOrUpdateVariables({
accountId: accountId,
siteId: siteId,
key: variables,
});

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now