aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app/layout.tsx2
-rw-r--r--src/components/TitleBar/TitleBar.tsx7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 1b01ac1..c71a7d4 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,5 +1,5 @@
import { Analytics } from "@vercel/analytics/react";
-import Metadata from "next";
+import type { Metadata } from "next";
import Footer from "../components/Footer/Footer";
import "./globals.css";
diff --git a/src/components/TitleBar/TitleBar.tsx b/src/components/TitleBar/TitleBar.tsx
index 9ae8d1e..2ebd633 100644
--- a/src/components/TitleBar/TitleBar.tsx
+++ b/src/components/TitleBar/TitleBar.tsx
@@ -41,7 +41,12 @@ const TitleBar: React.FC<TitleBarProps> = ({
const fetchPhaseData = async () => {
const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING;
try {
- const response = await fetch(apiUrl + "/groups.json");
+ const response = await fetch(apiUrl + "/groups.json", {
+ cache: 'no-store',
+ headers: {
+ 'Cache-Control': 'no-cache'
+ }
+ });
const data = await response.json();
setPhaseData(data);
const initialCollapsedState = Object.keys(data).reduce(
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage