push
github
1383 of 2713 branches covered (50.98%)
13 of 62 new or added lines in 4 files covered. (20.97%)
13866 of 74050 relevant lines covered (18.73%)
1.87 hits per line
NEW
|
import type { GetStaticPropsContext } from 'next'; |
|
NEW
|
import { systemConfig } from '@/features/i18n/system.config'; |
× |
NEW
|
import { ForbiddenPage } from '@/features/system/pages'; |
× |
NEW
|
import { getServerSideTranslations } from '@/lib/i18n'; |
× |
NEW
|
|
× |
NEW
|
export const getStaticProps = async (context: GetStaticPropsContext) => { |
× |
NEW
|
const { locale = 'en' } = context; |
× |
NEW
|
|
× |
NEW
|
const inlinedTranslation = await getServerSideTranslations(locale, systemConfig.i18nNamespaces);
|
× |
NEW
|
|
× |
NEW
|
return {
|
× |
NEW
|
props: {
|
× |
NEW
|
locale: locale,
|
× |
NEW
|
...inlinedTranslation, |
× |
NEW
|
}, |
× |
NEW
|
}; |
× |
NEW
|
}; |
× |
NEW
|
|
× |
NEW
|
export default function Custom403() { |
× |
NEW
|
return <ForbiddenPage />;
|
× |
NEW
|
} |
× |