Netlify/0.8.1/AddBuildEventContext

1.0.1Last update Jul 24, 2024
by@Codemod
Netlify-sdk
migration

This codemod renames addBuildContext to addBuildEventContext as required in Netlify SDK v0.8.1.

Before

import { NetlifyIntegration } from '@netlify/sdk';
const integration = new NetlifyIntegration();
// Adding a build event handler
integration.addBuildContext(() => {});

After

import { NetlifyIntegration } from '@netlify/sdk';
const integration = new NetlifyIntegration();
// Adding a build event handler
integration.addBuildEventContext(() => {});

Build custom codemods

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

background illustrationGet Started Now