|
@@ -6,12 +6,11 @@ import {
|
|
|
} from 'next';
|
|
} from 'next';
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
|
|
|
+import dynamic from 'next/dynamic';
|
|
|
import Head from 'next/head';
|
|
import Head from 'next/head';
|
|
|
|
|
|
|
|
import { NoLoginLayout } from '~/components/Layout/NoLoginLayout';
|
|
import { NoLoginLayout } from '~/components/Layout/NoLoginLayout';
|
|
|
|
|
|
|
|
-import CustomNavAndContents from '../components/CustomNavigation/CustomNavAndContents';
|
|
|
|
|
-import DataTransferForm from '../components/DataTransferForm';
|
|
|
|
|
import InstallerForm from '../components/InstallerForm';
|
|
import InstallerForm from '../components/InstallerForm';
|
|
|
import {
|
|
import {
|
|
|
useCsrfToken, useAppTitle, useSiteUrl, useConfidential,
|
|
useCsrfToken, useAppTitle, useSiteUrl, useConfidential,
|
|
@@ -21,6 +20,10 @@ import {
|
|
|
CommonProps, getNextI18NextConfig, getServerSideCommonProps, generateCustomTitle,
|
|
CommonProps, getNextI18NextConfig, getServerSideCommonProps, generateCustomTitle,
|
|
|
} from './utils/commons';
|
|
} from './utils/commons';
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+const DataTransferForm = dynamic(() => import('../components/DataTransferForm'), { ssr: false });
|
|
|
|
|
+const CustomNavAndContents = dynamic(() => import('../components/CustomNavigation/CustomNavAndContents'), { ssr: false });
|
|
|
|
|
+
|
|
|
const { isTrashPage: _isTrashPage } = pagePathUtils;
|
|
const { isTrashPage: _isTrashPage } = pagePathUtils;
|
|
|
|
|
|
|
|
async function injectNextI18NextConfigurations(context: GetServerSidePropsContext, props: Props, namespacesRequired?: string[] | undefined): Promise<void> {
|
|
async function injectNextI18NextConfigurations(context: GetServerSidePropsContext, props: Props, namespacesRequired?: string[] | undefined): Promise<void> {
|