I am trying to understand why getStaticProps is getting called multiple times. The relevant file is called [postId].js in my pages/posts folder; code ...
I am trying to understand why getStaticProps is getting called multiple times. The relevant file is called [postId].js in my pages/posts folder; code ...
when I saw the doccumentation of Nextjs I found out that the difference between getServerSideProps and getStaticProps is that the first runs on every ...
I'm building a story editor where you can write stories and separate them into different chapters and I'm having trouble accessing my subcollection fo ...
I want to use an array that is on another page. I need the array information for the title and meta tags, but it seems that in next js it takes time t ...
I fetch data in my Next JS app from Sanity to create dynamic routes. Like this: on localhost everything works fine and quick, on Netlify i am getti ...
I've been working on this project for quite a long time now. Some of my dynamic pages have issues with 404 error even though they are running perfectl ...
I have a C# / ASP.NET Core Web API project running on https://localhost:7001 and a next js app running on http://localhost:3000. I can run the C# API ...
I want to access hooks from getStaticProps to get the accessToken of the logged user which is saved in AuthContext. but this is impossible I am using ...
I am a beginner learning nextjs. By using the getStaticProps function, I know that I run data fetching once at build time and that the values are s ...
im using and access to my api (pages/api/proyects/)created with next js in my local host when i build the app in netlify i get this error conn ...
I'm trying to display content from strapi on a next.js app which is statically generated. I run both strapi & next.js on localhost (strapi on loc ...
In the next js documentation, we can see that getStaticProps function is used to pre-render dynamic code and serve full html code for the client/bots. ...
All pages in next 13 (experimental app.dir) are server side rendered λ. Doesn't matter if there is any fetching inside them. Only slug pages with gen ...
I am making a web application with NextJs. In the page I need to fetch an api to get data and display it. But it compiles I have got an error. The er ...
I'm trying to get local storage data using this code but it's not working. This code is inside getStaticProps(). ...
I'm getting the below error using getStaticProps(). What's the problem here? Using nextjs and I'm passing the returned value as props to a component. ...
500 brothers. why nextjs fetch all json files at the first time I land on the page. I am used getstaticprops for those pages. I am afraid that will af ...
Let's say I wanted to fetch data from a website, and the link to that website is http://cookiestats.net/cookies, and the data on that link is this: { ...
Currently I am not able to pull the database from Google Realtime Database and I am not sure what I am doing wrong. Below is the code that is in my Ca ...
How can I return only filtered paths from getStaticPaths? This returns the entire posts export async function getStaticPaths() { const { data } = ...