File size: 461 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import Link from 'next/link'
export const revalidate = 0
async function getData() {
await new Promise((resolve) => setTimeout(resolve, 3000))
return {
message: 'Welcome to the dashboard',
}
}
export default async function DashboardPage(props) {
const { message } = await getData()
return (
<>
<p id="dashboard-page">{message}</p>
<Link href="/static-page" id="to-static-page">
To Static Page
</Link>
</>
)
}
|