Files
myeasycms-v2/apps/web/app/not-found.tsx
Giancarlo Buomprisco 059408a70a chore: bump version to 2.23.14 and refactor error handling components (#451)
- Updated application version from 2.23.13 to 2.23.14 in package.json.
- Refactored error handling components in web app to utilize a new ErrorPageContent component for improved code organization and readability.
- Simplified error and not found page layouts by removing redundant code and enhancing localization keys for better user experience.
2026-02-06 19:21:30 +01:00

27 lines
688 B
TypeScript

import { ErrorPageContent } from '~/components/error-page-content';
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
import { withI18n } from '~/lib/i18n/with-i18n';
export const generateMetadata = async () => {
const i18n = await createI18nServerInstance();
const title = i18n.t('common:notFound');
return {
title,
};
};
const NotFoundPage = async () => {
return (
<div className={'flex h-screen flex-1 flex-col'}>
<ErrorPageContent
statusCode={'common:pageNotFoundHeading'}
heading={'common:pageNotFound'}
subtitle={'common:pageNotFoundSubHeading'}
/>
</div>
);
};
export default withI18n(NotFoundPage);