next.js/test/e2e/app-dir/app-static/app/variable-revalidate-edge/encoding/page.js
page.js20 lines379 B
export const runtime = 'edge'

export default async function Page() {
  const data = await fetch(
    'https://next-data-api-endpoint.vercel.app/api/utf8-encoding',
    {
      next: {
        revalidate: 3,
      },
    }
  ).then((res) => res.text())

  return (
    <>
      <p id="page">/variable-revalidate-edge/encoding</p>
      <p id="page-data">{data}</p>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN