Questions tagged [incremental-static-regeneration]
19 questions
2
votes
1 answer
How can I use Next.js incremental static regeneration (ISR) when deploying on Docker?
I wonder how best to deploy a Next.js app on Docker. The Docker image, once built, should be deployed on two different environments: first on TEST then - using the very same image - on PROD. Each environment has its own database.
It doesn't make…

Jens
- 185
- 6
2
votes
1 answer
Is there a way to revalidate all paths using on-demand revalidation for ISR in Next.js?
We have a Next.js site that relies heavily on ISR (incremental static regeneration) and uses webhooks to revalidate specific pages on-demand when their content has changed in our CMS.
However, we also want to keep some site-wide data in our CMS. …

Stephen Marsh
- 241
- 2
- 8
1
vote
0 answers
There is any way to know if on-demand revalidation is in progress in Next.js on Vercel?
The website of the company I work for is running Next.js on Vercel. The content is managed in Sanity.io and we use their cached API (served through a CDN) to fetch content. The exception is during the build process when we call the live API to…

Gustavo Straube
- 3,744
- 6
- 39
- 62
1
vote
2 answers
Using NextJS On Demand Revalidation on AWS Amplify
We have built a NextJS website that is running on AWS Amplify, we are currently using getStaticProps in order to render the pages, and we generate them using getStaticPaths.
We would like to use on-demand revalidation in order to refresh the data on…

user9884707
- 45
- 1
- 5
1
vote
0 answers
Next.js On-Demand Revalidation from server side (express)
I would like to know what is the best way to revalidate on-demand specific static pages from my server side (express), in my case it's after having created/updated/deleted a category.
I know that according to Next documentation I have to create a…

Loutag
- 21
- 1
- 6
0
votes
0 answers
Is it possible to use `getStaticPaths` to build static files such as JSON content inside the public folder? (Next.js)
It is well known that you can serve static files (e.g., JSON, CSV, etc.) in the public folder of a Next.js project (e.g., public/data/MyData.json). It is also well known that you can have pages with wildcard names (e.g.,…

josealvarez97
- 75
- 1
- 8
0
votes
0 answers
Does NextJS ISR also run in client while crawlers indexing the page?
So, I have built a website similiar to a blog. It gets the posts in getStaticProps. I know ISR is a good choice for SEO, especially NextJS itself. But the thing is, I have a filter for the website which works with queries like this:…

Lshiroc
- 39
- 2
- 7
0
votes
0 answers
Incremental Static Regeneration (ISR) Not Working on NextJS Site Deployed on Vercel
I have several Vercel sites deployed and many of them use ISR to generate new static content. I'm working on a new site and for some reason ISR is not working when I make changes in my CMS (Contentful).
Anyone know how to go about troubleshooting…

Designly
- 266
- 1
- 9
0
votes
1 answer
Nextjs build successful on netlify but site css not accessible
My Nextjs site builds without error on netlify. But the site looks like this and does not pick up the css. The console shows a syntax error Uncaught SyntaxError: Unexpected token '<'. The routing also does not work.
This site works fine when…

RamlahAziz
- 47
- 10
0
votes
0 answers
On demand ISR - disable cache and render updated content for the first request
Environment information
Operating System:
Platform: linux
Arch: x64
Version: #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023
Binaries:
Node: 14.17.5
npm: 6.14.14
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.1.6
eslint-config-next:…

Bharat Hegde
- 1
- 1
0
votes
0 answers
How to bundle next.js app as a javascript widget or npm package?
I have a survey built with Next.js using Incremental Static Regeneration (ISR). I would like to bundle it so I can can either publish it to npm or host a single entry file so I can use the survey on other applications.
It's currently hosted on…

h0bb5
- 609
- 1
- 7
- 22
0
votes
2 answers
Next.js: how to reset state upon ISR revalidation
Imagine that I have a Next.js app which uses ISR to temporarily render some content on the home page. This content is interactive and I would maintain the client state in a Context. Every 24 hours, I would like to regenerate this interactive content…

IVR
- 1,718
- 2
- 23
- 41
0
votes
0 answers
Next.js Incremental Static Regeneration (ISR) change revalidate time dynamically, trigger
I am using Next.js v12 and I running multiple pages with Incremental Static Regeneration.
I was just curious, instead of setting regenerate time (such as 10, 60), is there a way to trigger dynamically? (such as when backend api changes)
any other…

D. K.
- 41
- 4
0
votes
1 answer
What would be the ideal fetching approach for a large NextJS Blog page for great performance and SEO?
I'm working on a personal portfolio / blog page using NextJS 12 and Strapi as my CMS. The website's logic is going to be kind of similar to NextJS' Blog template ( Github repo link: https://github.com/leerob/leerob.io).
My /blog section displays all…
0
votes
1 answer
Incremental Static Regeneration Nextjs 13 without API call
I want to be able to use Incremental static regeneration when calling an endpoint in my Nexjs 13 app. The problem is that my endpoint is an Edge function so I get the following error when building my code:
This error is displayed when I try to call…

Polo D. Vargas
- 1,649
- 2
- 14
- 23