diff --git a/src/app/List.tsx b/src/app/List.tsx
index d31bfe5..7c5f047 100644
--- a/src/app/List.tsx
+++ b/src/app/List.tsx
@@ -112,7 +112,8 @@ const List = ({
{Temporal.Now.instant()
.since(Temporal.Instant.from(firstSeen))
- .round({ roundingMode: "trunc", smallestUnit: "days" }).days < 2 ? (
+ .round({ roundingMode: "trunc", smallestUnit: "hours" }).hours <
+ (process.env.NODE_ENV === "development" ? 1 : 36) ? (
<>
New{" "}
>
diff --git a/src/app/api/route.ts b/src/app/api/route.ts
index fa92c02..c62e9c3 100644
--- a/src/app/api/route.ts
+++ b/src/app/api/route.ts
@@ -32,7 +32,7 @@ export const GET = async (request: Request) => {
const response = await fetch(url, {
next: {
- revalidate: 60 * 30,
+ revalidate: process.env.NODE_ENV === "development" ? 30 : 60 * 30,
},
});
@@ -141,7 +141,10 @@ export const GET = async (request: Request) => {
return Response.json(result, {
headers: {
- "Cache-Control": "max-age=0, s-maxage=3600",
+ "Cache-Control":
+ process.env.NODE_ENV === "development"
+ ? "max-age=0, s-maxage=60"
+ : "max-age=0, s-maxage=3600",
},
});
};