diff --git a/app/county/[county]/page.tsx b/app/county/[county]/page.tsx index e9976ab..cd65f94 100644 --- a/app/county/[county]/page.tsx +++ b/app/county/[county]/page.tsx @@ -1,6 +1,7 @@ import React from "react" import path from "path" import { getSummaryStats } from "utils/data/summaryStats" +import { getContentDirs } from "utils/contentDirs" type CountyRouteProps = { params: { @@ -36,9 +37,10 @@ type CountyDataMap = Map const CountyPage: React.FC = async ({ params }) => { + // dynamic routes to use mdx content + getContentDirs() const county = params.county const countyDataPath = path.join(process.cwd(), "public", "data", `county_summary_stats.msgpack`) - const countyStats = await getSummaryStats(countyDataPath, county) return (