File
Blob: src/workerd/api/tests/opennextjs/src/app/posts/[id]/page.jsx
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | export default async function PostPage({ params }) { |
| 6 | const { id } = await params; |
| 7 | |
| 8 | return ( |
| 9 | <main> |
| 10 | <h1>Post {id}</h1> |
| 11 | <p id="post-id">Post ID: {id}</p> |
| 12 | <p id="render-time">Rendered at: {Date.now()}</p> |
| 13 | </main> |
| 14 | ); |
| 15 | } |