diff --git a/package.json b/package.json index 0f66528..73d574d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "www-aaronjy-me", - "version": "2.2.0", + "version": "2.3.0", "private": true, "type": "module", "lint-staged": { diff --git a/public/sitemap.xml b/public/sitemap.xml index 8b0679a..9b11af4 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -21,7 +21,6 @@ https://www.aaronjy.me/library/19840.6 https://www.aaronjy.me/library/alices-adventures-in-wonderland0.6 https://www.aaronjy.me/library/the-nature-of-alexander0.6 -https://www.aaronjy.me/library/test0.6 https://www.aaronjy.me/library/eleven-kinds-of-loneliness0.6 https://www.aaronjy.me/library/star-maker0.6 https://www.aaronjy.me/library/stray-reflections0.6 diff --git a/src/pages/library/index.js b/src/pages/library/index.js index e8f1c70..b09bab7 100644 --- a/src/pages/library/index.js +++ b/src/pages/library/index.js @@ -8,7 +8,7 @@ import { NextSeo } from "next-seo"; export const Title = "Library"; -export async function getServerSideProps() { +export async function getStaticProps() { const res = await fetchBookReviews(); if (!res.ok) { @@ -23,6 +23,7 @@ export async function getServerSideProps() { props: { reviews: stringifyAndParse(reviews), }, + revalidate: 60, }; } diff --git a/src/pages/tags/index.js b/src/pages/tags/index.js index 64319ae..33a9879 100644 --- a/src/pages/tags/index.js +++ b/src/pages/tags/index.js @@ -9,7 +9,7 @@ import { NextSeo } from "next-seo"; import Link from "next/link"; import React from "react"; -export async function getServerSideProps() { +export async function getStaticProps() { const res = await fetchPosts(["title", "date_published", "tags", "slug"], { status: "published", }); @@ -26,6 +26,7 @@ export async function getServerSideProps() { tags, posts, }, + revalidate: 60, }; } diff --git a/src/pages/writing/index.js b/src/pages/writing/index.js index 01b05b1..ce83418 100644 --- a/src/pages/writing/index.js +++ b/src/pages/writing/index.js @@ -5,7 +5,7 @@ import StaticContentList from "@/components/StaticContentList/StaticContentList" import { fetchPosts } from "@/services/content-service"; import { FailedFetchPostsError } from "@/errors"; -export const getServerSideProps = async () => { +export const getStaticProps = async () => { const res = await fetchPosts(["title", "date_published", "slug"], { status: "published", }); @@ -25,6 +25,7 @@ export const getServerSideProps = async () => { props: { posts, }, + revalidate: 60, }; };