hunk.code_window:         uses: actions/checkout@v3
           with:
             fetch-depth: 0
         - uses: pnpm/action-setup@v2.2.2
           with:
  
hunk.labels: keep keep keep keep replace keep
hunk.after_edit:       - uses: pnpm/action-setup@v2.2.4
  
hunk.file_path: examples/next-prisma-starter/.github/workflows/main.yml
hunk.type: replace
file: import { ImageResponse } from '@vercel/og';
  import { NextRequest } from 'next/server';
  
  export const config = {
    runtime: 'edge',
  };
  
  export default async function handler(req: NextRequest) {
    const { searchParams } = req.nextUrl;
    const username = searchParams.get('username');
    if (!username) {
      return new ImageResponse(<>{'Visit with "?username=vercel"'}</>, {
        width: 1200,
        height: 630,
      });
    }
  
    return new ImageResponse(
      (
        <div
          style={{
            fontSize: 60,
            color: 'black',
            background: '#f6f6f6',
            width: '100%',
            height: '100%',
            paddingTop: 50,
            flexDirection: 'column',
            justifyContent: 'center',
            alignItems: 'center',
            display: 'flex',
          }}
        >
          <img
            alt="avatar"
            width="256"
            src={`https://github.com/${username}.png`}
            style={{
              borderRadius: 128,
            }}
          />
          <p>github.com/{username}</p>
        </div>
      ),
      {
        width: 1200,
        height: 630,
      },
    );
  }
  