Skip to main content
Filter by
Sorted by
Tagged with
6 votes
5 answers
5k views

I’m working on a Next.js + TypeScript project with a MySQL database using Prisma. I set up my configuration in prisma.config.ts like this: import { defineConfig, env } from "prisma/config"; ...
Amrita Pathak's user avatar
0 votes
1 answer
651 views

I worked on my other system it works but when i installed the latest npm==10.9.3 and node==25.1.0, and next==15.3.3 it will pop out the following error and cannot render any web page. ⨯ [TypeError: ...
Chi-Yuan Li's user avatar
2 votes
3 answers
92 views

I'm working through the faust.js documentation to create a headless WordPress site with Next.js. I can't get past step two: https://faustjs.org/docs/tutorial/learn-faust/#2-set-up-headless-wordpress-...
Jillian Hoenig's user avatar
Best practices
0 votes
2 replies
88 views

I’m building an e-commerce type website in Next.js where there are multiple sections of stores. Each store card has a heart icon to mark it as a favourite. The same store can appear in: multiple ...
Ali Sadain Tanvir's user avatar
Tooling
0 votes
2 replies
47 views

I work on a NextJS project with Pages Router. We are using Jest for unit tests and Playwright for E2E. The application we are making is a funnel with several steps. Each step is a form with several ...
vtomic85's user avatar
  • 623
0 votes
0 answers
169 views

I'm experimenting with Next.js 16's new Cache Components and Partial Prerendering (PPR) to build a product page that: Serves a static shell instantly (HTML for layout, header, footer) Streams the ...
Mina Golzari Dalir's user avatar
3 votes
2 answers
241 views

I'm using ShadCN UI, Radix UI with TailwindCSS v4. I noticed that Tailwind classes don't work unless I add !important. For example: <section className="bg-gray-100 !px-15 !pt-15 !pb-20 rounded-...
PerfDev.'s user avatar
  • 118
-1 votes
2 answers
145 views

I'm stuck with a weird ScrollTrigger issue in my Next.js app and could really use some help. What's happening I have a section on my homepage that uses GSAP ScrollTrigger to pin and animate when you ...
Zain Mateen's user avatar
1 vote
1 answer
148 views

I'm using Next.js 16 with Cache Components (cache() from React) to deduplicate and cache database queries across layouts and pages. Here's my setup: // lib/data.ts import { cache } from 'react'; ...
Mina Golzari Dalir's user avatar
0 votes
3 answers
81 views

import {Suspense} from "react" type Props = { params: Promise<{joblistingId: string }> } export default function JoblistingPage(props: Props) { return ( <...
Ujjawal Bindal's user avatar
Best practices
1 vote
3 replies
111 views

We currently have a NestJS API using Prisma ORM. The API is used by multiple Next.js applications in different repos. To help with type safety across the various repos, we have a common "types&...
totallyquiche's user avatar
1 vote
1 answer
71 views

I want to pass the data from the NextJS middleware to the client component. I am using NextJS for the frontend, and an Express API for the backend. I could do it with X-Headers but what I want to send ...
GlicyDev's user avatar
0 votes
1 answer
64 views

I know it's an unconventional pairing, but I am using Next.js and the Laravel stack for my app. namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\...
Felicity's user avatar
  • 177
1 vote
1 answer
70 views

In my Next.js app, I'm trying to generate the robots.txt file dynamically. However, when I access http://localhost:3000/robots.txt, it redirects to the "Not Found" page. If I change the next....
Lalinda's user avatar
  • 23
2 votes
1 answer
71 views

I have a Next.js application with Better Auth setup. I can sign up and log in fine using email and password. I implemented OAuth sign in with Google, but that only worked once or twice. If I somehow ...
donpro2009's user avatar
2 votes
1 answer
78 views

I'm building an e-commerce site with Next.js 14 that supports multiple regions and languages, and I'm struggling with canonical URL implementation. Here's my situation: We have URLs like /en/us/...
Mina Golzari Dalir's user avatar
0 votes
1 answer
65 views

I'm trying to convert a WebM video file to MP4 using fluent-ffmpeg and @ffmpeg-installer/ffmpeg in a Next.js 14 API route (using the App Router). The same code worked perfectly in a standalone Node.js ...
codernoob8's user avatar
0 votes
1 answer
55 views

I'm currently working on my first NextJS app after a long hiatus. The first thing I'm working on is a small app that's powered by Firebase. After reading some documentation on Context and then ...
MisutoWolf's user avatar
  • 1,273
0 votes
2 answers
55 views

I'm trying to implement dark mode in my Next.js app using TailwindCSS. However, TailwindCSS's dark: classes are not being applied, even when the .dark class is present on the <html> tag. global....
Abhinav Shinde's user avatar
0 votes
1 answer
47 views

I have having issues in vercel and render deployment, but i have checked all instances but not happening i have check other answers also but it is not working. Are there any things which I can do for ...
Krishal's user avatar
-1 votes
0 answers
50 views

I have set up my tRPC backend as per the docs which I'll paste in below. My issue is using it with @tanstack/react-query works perfect for 90% of my use cases but I can't physically call my backend ...
frost2709's user avatar
  • 401
-4 votes
1 answer
61 views

I connected my domain to a Zoho mail account. Then I was trying to fill in the account data in my env file to use Nodemailer contact form in Next.js application. Before that all the contact form ...
Simon Wyns's user avatar
1 vote
1 answer
66 views

I’m using Next.js 15 with the App Router. I created an API route for a contact form, but when I submit the form, I get: POST /api/contact 404 My project structure: src/ app/ contact/ page....
ayushmaan mishra's user avatar
0 votes
1 answer
79 views

I’m using AWS Cognito with Google as an Identity Provider in a Next.js app. I am using AWS managed login as well. Sign-in works correctly, tokens are received, and the user session persists. However, ...
codernoob8's user avatar
-1 votes
0 answers
73 views

import{ PrismaClient }from '../app/generated/prisma' I see red underline for this line in my vs code and also having a error "module can be found" something like that in my terminal. But it ...
Lamidu Rathnayake's user avatar
1 vote
0 answers
42 views

I'm using the entry file at the root of my app as a data layer, for redirects depending on session, which I'm retrieving using getServerSession. If at a point no session exists, user should be ...
Peter Muguro's user avatar
-1 votes
0 answers
54 views

I want: Logged in users liked tracks in the order the user liked them. Tried: Use v2 API but i cant get OAuth to work without internal ID. User history to get dates user liked tracks on, doesnt ...
totoplz's user avatar
-3 votes
1 answer
69 views

The Situation Current Layout: The basic layout consists of a Header, a Left Navigation Bar (Sidebar), a Footer, and the Main Content Area. The Task: I'm building a Preview Dialog/Modal. Goal: When ...
SJW's user avatar
  • 1
-1 votes
1 answer
29 views

I’m working on a telco project that will be deployed across eight different regions. Each region will have: Different color branding Possibly some UI component variations However, all API ...
khubaib's user avatar
-1 votes
0 answers
48 views

I'm using Next.js (App Router) and I'm getting a 404 error when calling my API route from a client component. I restarted the server, verified the folder names, and even tried hitting the URL directly,...
Kavya Vaishnav's user avatar
Advice
1 vote
1 replies
50 views

In my case, I only want authenticated users to perform a SELECT query on my database, so I set up my RLS Policy for this scenario. This is where I am hitting an issue. With RLS enabled, I need to let ...
Boon Jefferson Brigoli's user avatar
-5 votes
0 answers
39 views

in package.json in next js: "devDependencies": { "@tailwindcss/postcss": "^4", "@types/node": "^20", "@types/react": "^19&...
DPM's user avatar
  • 1
1 vote
0 answers
69 views

I'm trying to set up Google authentication in Strapi v5 using the Users & Permissions plugin, with a Next.js frontend. The problem happens right after I accept the Google login. Instead of ...
Duty First's user avatar
1 vote
1 answer
49 views

So I'm trying to build my Next.js project, which, for context, was being deployed without a problem, up until my main branch. When I then tried to implement mdx, with rehype and shiki, and tried to ...
Santiago Uribe Gil's user avatar
-3 votes
0 answers
38 views

I’m learning the basics of web development and recently got into different types of rendering (CSR, SSR, SSG, etc.). Server-side Rendering (SSR) Client-side Rendering( CSR Static Site Generation (SSG)...
user29407477's user avatar
0 votes
1 answer
59 views

I’m trying to generate dynamic metadata using the built-in Next.js method generateMetadata. On localhost, it works: it fetches the title, reads the related article, and generates the metadata in the &...
user25502815's user avatar
Best practices
0 votes
0 replies
51 views

I'm working on a Next.js 14 app with several dynamic routes (e.g., /product/[id]) that render product details from a large dataset (around 50k+ records) stored in PostgreSQL. I'm using ...
Mina Golzari Dalir's user avatar
-1 votes
0 answers
43 views

I'm deploying a Next.js 14 app on Google Cloud Run, protected by IAP (Identity-Aware Proxy) and fronted by a Load Balancer. Everything works fine when the user is logged in with a Google account. ...
Aolera's user avatar
  • 77
1 vote
1 answer
46 views

I am using Next.js 15.5.4, React 19.1.0, and the package react-quill-new 3.6.0 for a blog editor. The editor works fine, the toolbar works fine, and all formatting options are working. But now I want ...
Rishav Kumar's user avatar
-1 votes
0 answers
60 views

export function useDebounce<T extends (...args: Parameters<T>) => void>( callback: T, delay = 300, dependencies: React.DependencyList = [] ): (...args: Parameters<T>) => ...
Dhruv Sharma's user avatar
0 votes
0 answers
52 views

I'm implementing authentication middleware with NextAuth.js in Next.js 15.3.2 using the App Router. The middleware compiles successfully but throws a runtime error when trying to access protected ...
Jose Zepeda's user avatar
-1 votes
0 answers
30 views

After upgrading to next js 16, i'm getting the following error when i run pnpm build. But it is working find when using webpack. The error: > pnpm build ▲ Next.js 16.0.3 (Turbopack) - ...
Govind P Venu's user avatar
0 votes
2 answers
42 views

devs! I'm trying to build a multilingual website based on Next.js(15.6) Node 22.21.10. Locally I have no issue with routing everything works as expected. Both lang versions are served as expected. (...
ultrapanam's user avatar
1 vote
1 answer
88 views

I'm working on a Next.js 16 project and trying to set up Tailwind CSS v4. I installed Tailwind via npm: npm install -D tailwindcss postcss autoprefixer I also created the following config files ...
trabelsi wejden's user avatar
0 votes
1 answer
56 views

enter image description here Each dependency is properly installed . The error is specific to the line : const result = await summarizer.run( `Summarize the following text: ${event.data.value}`...
SemiCile's user avatar
0 votes
0 answers
52 views

Inside the VR mode, I can move from image to another I use my own fetching API. I tried to move to the next panorama, but it is not moving inside the scene. I was trying multiple solutions, nothing ...
Asma Aljuwaei's user avatar
-6 votes
0 answers
30 views

My s3 url is getobject url - .pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=&X-Amz-Date=&X-Amz-Expires=&X-Amz-Signature=&X-Amz-...
Filmgoer bot's user avatar
Best practices
0 votes
3 replies
39 views

We have a nuxt.js project which is an ecommerce site. We load the products page with first 100 products as SSR. after that we load other products as we needed from the client side using an API call. ...
margherita pizza's user avatar
0 votes
1 answer
45 views

I’m using Next.js 16.0.1 and loading images from a Directus /assets/<id> endpoint. The Directus asset URL works fine in the browser: https://<directus-domain>/assets/<id> But when ...
Ronak Koladiya's user avatar
0 votes
0 answers
48 views

I’m using Cloudinary to upload documents (PDFs, ZIPs, etc.) from my Next.js app. The upload succeeds, but when I try to access the file via URL like: In the Cloudinary Media Library, it says: Access ...
Kenil Mangukiya's user avatar