import type { NextApiRequest, NextApiResponse } from 'next';
import requestIp from 'request-ip';

export default function handler(
    req: NextApiRequest,
    res: NextApiResponse
  ) {
    const detectedIp = requestIp.getClientIp(req);
    const userAgent = req.headers['user-agent'];
    console.log(userAgent);
  }
  