experiments with docker packaging, figuring out deploy plan

This commit is contained in:
Amruth Pillai
2022-03-03 12:24:32 +01:00
parent 2aa3786f5f
commit 58160b2b6e
20 changed files with 1068 additions and 372 deletions

View File

@ -1,14 +1,14 @@
import { Link as LinkIcon } from '@mui/icons-material';
import { Button } from '@mui/material';
import type { NextPage } from 'next';
import type { GetServerSideProps, NextPage } from 'next';
import dynamic from 'next/dynamic';
import Image from 'next/image';
import Link from 'next/link';
import { Trans, useTranslation } from 'next-i18next';
import i18nConfig from 'next-i18next.config';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { screenshots } from '@/config/screenshots';
import i18nConfig from '@/i18n/index';
import { logout } from '@/store/auth/authSlice';
import { useAppDispatch, useAppSelector } from '@/store/hooks';
import { setModalState } from '@/store/modal/modalSlice';
@ -20,13 +20,13 @@ const Footer = dynamic(() => import('@/components/shared/Footer'));
const Logo = dynamic(() => import('@/components/shared/Logo'));
const NoSSR = dynamic(() => import('@/components/shared/NoSSR'));
export async function getStaticProps({ locale }) {
export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
return {
props: {
...(await serverSideTranslations(locale, ['common', 'modals', 'landing'], i18nConfig)),
},
};
}
};
const Home: NextPage = () => {
const { t } = useTranslation();