Skip to content

Commit bc86207

Browse files
committed
404 on server
1 parent 875e63d commit bc86207

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/site/app/[locale]/not-found.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
'use client';
1+
'use server';
22

33
import { ArrowRightIcon } from '@heroicons/react/24/solid';
4-
import { useTranslations } from 'next-intl';
4+
import { getTranslations } from 'next-intl/server';
55
import type { FC } from 'react';
66

77
import Button from '#site/components/Common/Button';
88
import Turtle from '#site/components/Common/Turtle';
99
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
1010

11-
const NotFoundPage: FC = () => {
12-
const t = useTranslations();
11+
const NotFoundPage: FC = async () => {
12+
const t = await getTranslations();
1313

1414
return (
1515
<GlowingBackdropLayout kind="default">

0 commit comments

Comments
 (0)