File size: 238 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { redirect } from 'next/navigation'

export default async function Page({ params }) {
  const id = (await params).id
  if (id === 'source') redirect('/dynamic/dest')

  return (
    <div>
      <p>{`id:${id}`}</p>
    </div>
  )
}