aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/api/v2/episode/[id].js4
-rw-r--r--pages/en/index.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/pages/api/v2/episode/[id].js b/pages/api/v2/episode/[id].js
index e17f76a..c5d98f5 100644
--- a/pages/api/v2/episode/[id].js
+++ b/pages/api/v2/episode/[id].js
@@ -77,8 +77,8 @@ async function fetchAnify(id) {
export default async function handler(req, res) {
const { id, releasing = "false", dub = false } = req.query;
- // if releasing is true then cache for 10 minutes, if it false cache for 1 week;
- const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 7;
+ // if releasing is true then cache for 10 minutes, if it false cache for 1 month;
+ const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 30;
let cached;
diff --git a/pages/en/index.js b/pages/en/index.js
index acd3705..0ef8d27 100644
--- a/pages/en/index.js
+++ b/pages/en/index.js
@@ -493,7 +493,7 @@ export default function Home({ detail, populars, upComing }) {
transition={{ duration: 0.5, staggerChildren: 0.2 }} // Add staggerChildren prop
>
{/* SECTION 3 */}
- {recentAdded.length > 0 && (
+ {recentAdded?.length > 0 && (
<motion.section // Add motion.div to each child component
key="recentAdded"
initial={{ y: 20, opacity: 0 }}