From f982abc0cf13ea181d3a6de14107006b8a8e5ced Mon Sep 17 00:00:00 2001 From: coinmoles Date: Thu, 18 Jul 2024 18:08:24 +0900 Subject: [PATCH] add gatsby prefix to redirects --- src/pages/index.tsx | 4 ++-- src/pages/runs.tsx | 4 ++-- src/pages/runs/[date].tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index daa5ce9..422e34b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,7 +1,7 @@ import { Redirect } from "@reach/router"; import { formatDate } from "date-fns"; import { toZonedTime } from "date-fns-tz"; -import { PageProps } from "gatsby"; +import { PageProps, withPrefix } from "gatsby"; import React from "react"; import { Helmet } from "react-helmet"; @@ -16,7 +16,7 @@ const IndexPage: React.FC> = () => { - + ); }; diff --git a/src/pages/runs.tsx b/src/pages/runs.tsx index 1bb8177..52e0f05 100644 --- a/src/pages/runs.tsx +++ b/src/pages/runs.tsx @@ -1,7 +1,7 @@ import { Redirect } from "@reach/router"; import { formatDate } from "date-fns"; import { toZonedTime } from "date-fns-tz"; -import { PageProps } from "gatsby"; +import { PageProps, withPrefix } from "gatsby"; import React from "react"; import { Helmet } from "react-helmet"; @@ -16,7 +16,7 @@ const RunsPage: React.FC> = () => { - + ); }; diff --git a/src/pages/runs/[date].tsx b/src/pages/runs/[date].tsx index 90f5a13..b048eb9 100644 --- a/src/pages/runs/[date].tsx +++ b/src/pages/runs/[date].tsx @@ -9,7 +9,7 @@ import { } from "@/components/ui/card"; import { Redirect } from "@reach/router"; import { isMatch } from "date-fns"; -import { graphql, Link, PageProps } from "gatsby"; +import { graphql, Link, PageProps, withPrefix } from "gatsby"; import * as React from "react"; import { Helmet } from "react-helmet"; @@ -60,7 +60,7 @@ const RunsPage: React.FC> = ({ - + ); };