Next.js
migration
byCodemod

Next/14/Next Og Import

/icons/calendar.svg

Last update

Jul 24, 2024

This codemod moves transforms imports from next/server to next/og for usage of Dynamic OG Image Generation.

Example

Before

import { ImageResponse } from 'next/server';

After

import { ImageResponse } from 'next/og';

Build custom codemods

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

background illustrationGet Started Now