We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1712f8 commit 7b947dcCopy full SHA for 7b947dc
tests/fixtures/page-router-base-path-i18n/pages/products/[slug].js
@@ -8,7 +8,19 @@ const Product = ({ time, slug }) => (
8
</div>
9
)
10
11
+/** @type {import('next').GetStaticProps} */
12
export async function getStaticProps({ params }) {
13
+ if (params.slug === 'not-found-no-revalidate') {
14
+ return {
15
+ notFound: true,
16
+ }
17
+ } else if (params.slug === 'not-found-with-revalidate') {
18
19
20
+ revalidate: 600,
21
22
23
+
24
return {
25
props: {
26
time: new Date().toISOString(),
0 commit comments