Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
Netlify/sdk
migration
byCodemod
Netlify/0.8.5/GetEnvironmentVariables
Last update
Jan 10, 2025
This codemod changes getEnvironmentVariables
to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.
Before
getEnvironmentVariables(accountId, siteId);
After
getEnvironmentVariables({accountId: accountId,siteId: siteId,});
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community