mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This copies over the E2E tests that were added to `vercel/vercel` in https://github.com/vercel/vercel/pull/10808 and https://github.com/vercel/vercel/pull/10823, with some minor adjustments to reflect the differences in cache behavior between start & deploy.
17 lines
402 B
React
17 lines
402 B
React
import React, { Suspense } from 'react'
|
|
import { Dynamic } from '../../../components/dynamic'
|
|
|
|
export const revalidate = 60
|
|
|
|
export default ({ params: { slug } }) => {
|
|
return (
|
|
<Suspense fallback={<Dynamic pathname={`/nested/${slug}`} fallback />}>
|
|
<Dynamic pathname={`/nested/${slug}`} />
|
|
</Suspense>
|
|
)
|
|
}
|
|
|
|
export const generateStaticParams = async () => {
|
|
return [{ slug: 'a' }]
|
|
}
|