diff --git a/pages/dashboards/[[...location]].js b/pages/dashboards/[[...location]].js index 97d856ac56..4a4f3013dd 100644 --- a/pages/dashboards/[[...location]].js +++ b/pages/dashboards/[[...location]].js @@ -13,7 +13,6 @@ import { parseStringWithVars } from 'utils/strings'; import { getLocationData } from 'services/location'; import { getPublishedNotifications } from 'services/notifications'; import { - // getCountriesProvider, getRegionsProvider, getSubRegionsProvider, getCategorisedCountries, diff --git a/pages/embed/sentence/[[...location]].js b/pages/embed/sentence/[[...location]].js index 5536fc88f0..72c21d4165 100644 --- a/pages/embed/sentence/[[...location]].js +++ b/pages/embed/sentence/[[...location]].js @@ -6,7 +6,6 @@ import { parseGadm36Id } from 'utils/gadm'; import { getLocationData } from 'services/location'; import { - // getCountriesProvider, getRegionsProvider, getSubRegionsProvider, getCategorisedCountries, @@ -151,21 +150,6 @@ export const getServerSideProps = async ({ params }) => { }; } }; -// -// export const getStaticPaths = async () => { -// const countryData = await getCountriesProvider(); -// const { rows: countries } = countryData?.data || {}; -// const countryPaths = countries.map((c) => ({ -// params: { -// location: ['country', c.iso], -// }, -// })); -// -// return { -// paths: ['/embed/sentence/', ...countryPaths] || [], -// fallback: true, -// }; -// }; const getSentenceClientSide = async ( locationNames = null,