mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What Isolate parallel-routes related test cases for streaming metadata into a standalone test suite. Prepared to add more parallel route test cases into it.
14 lines
287 B
TypeScript
14 lines
287 B
TypeScript
import { connection } from 'next/server'
|
|
|
|
export default function TestPage() {
|
|
return 'test page'
|
|
}
|
|
|
|
export async function generateMetadata() {
|
|
await connection()
|
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
|
return {
|
|
title: `Dynamic api ${Math.random()}`,
|
|
}
|
|
}
|