File size: 356 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { headers } from 'next/headers'
import { getRequestMeta, withRequestMeta } from '../../../helpers'

export async function GET() {
  const h = await headers()

  // Put the request meta in the response directly as meta again.
  const meta = getRequestMeta(h)

  return new Response(null, {
    status: 200,
    headers: withRequestMeta(meta),
  })
}