8 lines
261 B
TypeScript
8 lines
261 B
TypeScript
export default function Redirect() {
|
|
return null
|
|
}
|
|
export const getServerSideProps: import('next').GetServerSideProps = async ({ params }) =>
|
|
params?.locale !== 'en'
|
|
? { notFound: true }
|
|
: { redirect: { destination: '/en/trump', permanent: true } }
|