20 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
191
views
How to pre-render specific route on cli?
I have configured in app.routes.server.ts to pre-render a set of articles that are fetched from a CMS. It looks like this:
// app.routes.server.ts
...
{
path: 'article/:articleId',
renderMode:...
0
votes
0
answers
50
views
Nuxt 3 ISR on Cloudflare Not Fetching Fresh API Data After Prerendering
I have a Nuxt 3 app using useAsyncData with a pre-rendering approach. The API call is made as follows:
const { data: accommodation, refresh } = await useAsyncData(`accommodations/${locale.value}/${...
0
votes
0
answers
201
views
Astro.js v5 - Is there any way to staticaly render some pages and server side render others on the same dynamic route?
I have 20k posts, I want to prerender 2k of them on build-time, the others should be served on demand. I am using the Vercel server adapter with the server output.
https://docs.astro.build/en/guides/...
0
votes
1
answer
180
views
Next.js Features Dependent on Vercel Infrastructure
I've noticed that some Next.js features don't work properly when you move your project outside of Vercel. Features like Incremental Static Regeneration (ISR), edge functions, and advanced caching ...
1
vote
0
answers
80
views
implementing Incremental Static Regeneration(ISR) without keyword "fetch"
I've tried many ways to make my one page in this web app build in ISR- this app uses Google Spreadsheets as a database and the user fills out the spreadsheet, and it populates the page. I want it to ...
0
votes
0
answers
34
views
Trying to find out why pages refresh sometimes after the page has fully hydrated
We've recently launched a site built with Nuxt 3, CMS with Storyblok, hosted on Netlify with ISR render mode.
https://epc-improvements.co.uk/
We have noticed that pages occasionally refresh after full ...
1
vote
0
answers
119
views
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 ...
2
votes
0
answers
625
views
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 ...
4
votes
1
answer
2k
views
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 ...
0
votes
1
answer
905
views
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 ...
2
votes
1
answer
1k
views
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 ...
1
vote
0
answers
445
views
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 ...
0
votes
2
answers
887
views
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 ...
0
votes
0
answers
21
views
Next.js Incremental Static Regeneration (ISR) change revalidate time dynamically, trigger [duplicate]
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?...
0
votes
1
answer
1k
views
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/...