File size: 450 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
24
import React from 'react'
import { notFound } from 'next/navigation'

export const revalidate = 3

export default async function Page() {
  await fetch('https://next-data-api.vercel.app/api/random', {
    next: {
      tags: ['explicit-tag'],
    },
  })

  if (process.env.NEXT_PHASE === 'phase-production-build') {
    notFound()
  }

  return (
    <>
      <p>/prerendered-not-found/segment-revalidate</p>
      <p>{Date.now()}</p>
    </>
  )
}