message: dashboard page prefetch country list
diff: -import { GetStaticProps } from 'next'
  +import { GetServerSideProps } from 'next'
  +import { dehydrate, QueryClient } from 'react-query'
  import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
  +import { queryFn } from 'common/rest'
  +import { endpoints } from 'common/api-endpoints'
  import DashboardPage from 'components/dashboard/DashboardPage'
  -export const getStaticProps: GetStaticProps = async ({ locale }) => ({
  +export const getServerSideProps: GetServerSideProps = async ({ locale }) => {
  + const client = new QueryClient()
  + await client.prefetchQuery(endpoints.country.countryList.url, queryFn)
  +
  + return {
  props: {
  - ...(await serverSideTranslations(locale ?? 'bg', ['common', 'dashboard'])),
  + ...(await serverSideTranslations(locale ?? 'bg', [
  + 'common',
  + 'auth',
  + 'dashboard',
  + 'validation',
  + ])),
  + dehydratedState: dehydrate(client),
  },
  -})
  + }
  +}
  export default DashboardPage
  