fix: remove listening to params in not-found, not needed
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import { getIntl } from "@/i18n"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
import { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default async function NotFound({ params }: PageArgs<LangParams>) {
|
||||
setLang(params.lang)
|
||||
export default async function NotFound() {
|
||||
const { formatMessage } = await getIntl()
|
||||
return (
|
||||
<main>
|
||||
|
||||
Reference in New Issue
Block a user