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

@ -9,12 +9,12 @@ import { GetServerSideProps, NextPage } from 'next';
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { useRouter } from 'next/router';
import i18nConfig from 'next-i18next.config';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { useEffect } from 'react';
import toast from 'react-hot-toast';
import { useMutation, useQuery } from 'react-query';
import i18nConfig from '@/i18n/index';
import { ServerError } from '@/services/axios';
import { printResumeAsPdf, PrintResumeAsPdfParams } from '@/services/printer';
import { fetchResumeByIdentifier } from '@/services/resume';
@ -39,7 +39,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ query, loc
const { username, slug } = query as QueryParams;
try {
const resume = await fetchResumeByIdentifier({ username, slug, options: { withHost: true } });
const resume = await fetchResumeByIdentifier({ username, slug });
return {
props: { username, slug, resume, ...(await serverSideTranslations(locale, ['common'], i18nConfig)) },