next.js/test/e2e/app-dir/app-static/app/route-handler/no-store/route.ts
route.ts11 lines256 B
export const revalidate = 5

export async function GET() {
  const data = await fetch(
    'https://next-data-api-endpoint.vercel.app/api/random',
    { cache: 'no-store' }
  ).then((res) => res.text())

  return Response.json({ now: Date.now(), data })
}
Quest for Codev2.0.0
/
SIGN IN