diff --git a/next.config.ts b/next.config.ts index 1c5468f..64ec06a 100644 --- a/next.config.ts +++ b/next.config.ts @@ -30,6 +30,16 @@ const nextConfig: NextConfig = { destination: "/builders/:slug", permanent: true, }, + { + source: "/economic-indicators", + destination: "/prosperity-dashboard", + permanent: true, + }, + { + source: "/economic-indicators/:path*", + destination: "/prosperity-dashboard/:path*", + permanent: true, + }, ]; }, async rewrites() { diff --git a/src/app/api/economy/series/route.ts b/src/app/api/economy/series/route.ts index 37d971f..30fec77 100644 --- a/src/app/api/economy/series/route.ts +++ b/src/app/api/economy/series/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { getEconomicSeries } from "@/lib/api/economy"; -import { MEASURE_SLUGS } from "@/app/economic-indicators/indicators"; +import { MEASURE_SLUGS } from "@/app/prosperity-dashboard/indicators"; // Same-origin proxy for york_factory's public series endpoint so client // components (the canvas page) can fetch without cross-origin config. The diff --git a/src/app/economic-indicators/CombinedSectionChart.tsx b/src/app/prosperity-dashboard/CombinedSectionChart.tsx similarity index 98% rename from src/app/economic-indicators/CombinedSectionChart.tsx rename to src/app/prosperity-dashboard/CombinedSectionChart.tsx index fb8ef91..7a1e22e 100644 --- a/src/app/economic-indicators/CombinedSectionChart.tsx +++ b/src/app/prosperity-dashboard/CombinedSectionChart.tsx @@ -162,7 +162,7 @@ export default function CombinedSectionChart({ return (
- - Canada should be the most prosperous country in the world. - {" "} - The question - is whether we are turning those advantages into better lives — - and that is measurable. -
-- Prosperity is more than a growing GDP. It’s paycheques - that buy more each year, homes people can afford, streets that - are safe, air that is clean, institutions worth trusting, and - lives people are satisfied with, confident enough in the - future to build one here. That is what these charts measure. -
-- Where the world offers a yardstick, Canada is the red line - against its G7 and OECD peers. Where the question is ours alone, how many homes we start, how fast people climb out of low income, we measure Canada against its own record. Every chart - asks the same question: are we moving in the right direction? -
-