next.js/test/e2e/app-dir/dynamic-data/fixtures/cache-scoped/app/connection/page.js
page.js17 lines405 B
import { connection } from 'next/server'
import { unstable_cache as cache } from 'next/cache'

const cachedConnection = cache(async () => connection())

export default async function Page(props) {
  await cachedConnection()
  return (
    <div>
      <section>
        This example uses `connection()` inside `unstable_cache` which should
        cause the build to fail
      </section>
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN