Is ISR working for anyone in the NextJS 13 Beta version?
I have set revalidate to 15 as follows.
export const revalidate = 15;
However, even after running `npm run build`, the page still remains a statically generated site (SSG).
The symbol is showing up as an empty white space.
What am I doing wrong? I expected the page to utilize ISR.
P.S: I also attempted using fetch api with { next: { revalidate: 15 } }, but the result was the same.
After running npm run build, this is the output in the terminal.
https://i.sstatic.net/vozwV.png
This page is not a dynamic route.
The file location is app/page.jsx so it should open at localhost:3000
import axios from "axios";
import Card from "@/components/Card";
export const revalidate = 15; // doesn't seem to be having any effect
const AllCards = async () => {
const url = 'http://localhost:3001/cards';
const fetchCards = await axios.get(url);
const cards = fetchCards.data.data;
return (
<main>
<div className='text-3xl font-bold underline text-center mb-4 mt-4'>
All Cards
</div>
<div className='flex flex-wrap justify-center gap-2'>
{cards.map(c => <Card vanity={c.vanity} art={c.art} id={c.id} />)}
</div>
</main>
);
}
export default AllCards;