next.js/test/e2e/app-dir/logging/app/many-requests/page.js
page.js15 lines394 B
export default async function Page() {
  await Promise.all(
    new Array(12).fill(undefined).map((_, index) =>
      index > 5
        ? fetch(`https://next-data-api-endpoint.vercel.app/api/random?${index}`)
        : fetch(`https://next-data-api-endpoint.vercel.app/api/random`, {
            method: 'POST',
            body: index,
          })
    )
  )

  return <h1>Many Requests</h1>
}
Quest for Codev2.0.0
/
SIGN IN