Do NOT use this tag for Next.js, use [next.js] instead. For questions related to Iterator, use [iterator]. For questions related to JQuery selectors, use [jquery-selectors]. For questions related to pagination, use [pagination]
Questions tagged [next]
92 questions
4
votes
3 answers
Prisma and Nextjs: content is not updating until re-deploy
Here is the website that I just deployed on Vercel. I am building a web application using Prisma and Next.js, and I'm experiencing an issue where the content is not updating in real-time until I manually re-deploy the application. Here's the…

Sadeed_pv
- 513
- 1
- 9
- 22
2
votes
0 answers
Next Js - getStaticProps is not returning anything
I don't know why my getStaticProps() does not return anything. I hopped through many articles but can't find a solution.
The console.log gives me undefined on page.js and categories.jsx both.
I am using app router.
app/page.js
import Landing from…

Sebak Thapa
- 171
- 2
- 7
2
votes
0 answers
Next JS Mixed Content issue https to http
I'm currently developing a Next.js 13 application to stream IPTV from various sources. My site is set up with HTTPS, but the videos I'm trying to play are served over HTTP, causing Mixed Content issues.
Here's the problem in detail: when I try to…

Serial Geeker
- 49
- 6
2
votes
2 answers
React nested Accordion Parent not updating height
I am trying to build the mobile version of my homepage, My nested accordion "Projects" seems to have a bug where it doesn't show the correct height of the bottom projects section on the first open.
To open that, you first click on the projects text,…

pyan
- 865
- 2
- 12
- 23
2
votes
0 answers
zustand next 13 set initial state on server and get state on client
i have next 13 application and i am using zustand as my state manager
currently
i have a simple layout that looks like this

Abdelhamied mostafa
- 124
- 1
- 11
1
vote
0 answers
incremental static regeneration(ISR) in next js is not working in netlify
hey so im using incremental static regeneration(ISR) in next js. im first saving a note to db through an api
const sendData = async (formData: FormDataType) => {
try {
const response = await fetch('someapi/savenote', {
method: 'POST',
…

Sajid Aalam
- 11
- 2
1
vote
1 answer
Network issues with Nextjs (T3 App) and Docker on production environment [TypeError: fetch failed at Object.fetch]
I have a Nextjs project using the create T3 app stacks (with the exception of using drizzle orm instead pf Prisma).
On my development environment everything is working just fine
Now I wanted to deploy my project on my linux server using…

Niklas
- 11
- 2
1
vote
0 answers
How to Track Individual Users in Google Analytics by using next js
Track individual users in Google Analytics and get a singular view of your customer journeys.
If your application or website has a login authentication system, then it is possible to track users in Google Analytics using the next js.
I wanted to…

Uswa Nadeem
- 9
- 2
1
vote
1 answer
301 redirect on next static export
I'm currently working on a Next.js project, and I have used static export to improve performance and SEO. However, I've encountered an issue related to URL changes. I'd like to implement 301 redirect. so that search engines and users are redirected…

aman pandey
- 11
- 2
1
vote
0 answers
Module parse failed: Unexpected token when 'use client' is present
I am building a npm package for nextjs projects which works fine so far. However, the package consists of several server components and 1 client component. This means the file has 'use client' on top of the file. When I build my package, and try to…

Skywalker
- 11
- 3
1
vote
0 answers
How to update the NextAuth session object client-side with RTK query?
I have next-auth set up in my application and I am using reduxjs toolkit with RTK query for API calls. There is a refresh token route set up on the backend to refresh jwt tokens.
I am trying to update the session.jwt property from the RTK base query…

BerenBoden
- 41
- 5
1
vote
1 answer
getStaticProps() function not passing data to the components
im lerning to use next js while using the nextjs.org page guide
my question,
is that.
my getStaticProps function seems to get the data and logging correctly inside the get static props
but when i send the data ( with is the props object) i seem…

Mustafa sabah
- 25
- 6
1
vote
0 answers
how can I disable the cache from vercel
I have a project using next.js and databse, I'm trying to make it on vercel hosting provider, I can send the data to databse from my app but it doesn't update until I go to the sitting and purge the cache, how can I set my project to no cache…

shadab
- 11
- 1
1
vote
2 answers
How to fix `next dev` esm import errors?
When I run next dev on this project I get the following kind of errors. They are all caused by one internal library required by other internal libraries as dependency:
Module not found: ESM packages (@company/style-lib) need to be imported. Use…

kbo
- 422
- 5
- 17
1
vote
1 answer
how to apply global css styles to pages folder in next 13?
This is kinda counterintuitive, the app folder has a global.css but these globals are not applied for the pages folder. How to fix this?

n79qk272x57w46w9
- 51
- 5