Skip to main content
Filter by
Sorted by
Tagged with
6 votes
4 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
1 vote
1 answer
279 views

I'm exploring the new MCP (Model Context Protocol) server introduced in Next.js 16, and I’d like to understand how to properly enable and use it in a development environment. What I’ve done so far: ...
Amirhossein Modirkhazeni's user avatar
3 votes
2 answers
218 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 vote
1 answer
116 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
1 answer
101 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
79 views

I was working on Next.js 15 (App Router) and trying to integrate Server Actions with Zustand for client-side state management. // store.ts import { create } from 'zustand'; export const ...
Gnaneshwar P's user avatar
0 votes
3 answers
65 views

import {Suspense} from "react" type Props = { params: Promise<{joblistingId: string }> } export default function JoblistingPage(props: Props) { return ( <...
Ujjawal Bindal's user avatar
2 votes
1 answer
49 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
63 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
61 views

I am doing a project which will use Google Login in NextJs This is my setting in OAuth 2.0 and in amplify environment variables After I deployed the app and try to login It redirect me to http://...
EQ0920's user avatar
  • 124
0 votes
1 answer
74 views

I have a Spring Boot Data REST project with the following classes @Entity @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Product { @Id private String sku; @OneToMany(...
Michael Rynkiewicz's user avatar
-1 votes
0 answers
53 views

I was testing how Next.js 15 (App Router) behaves when using Atomics.waitAsync() inside a Web Worker, executed from Edge Middleware. The worker runs fine in a standard Node.js environment, but when ...
Gnaneshwar P's user avatar
-1 votes
0 answers
57 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
-3 votes
1 answer
61 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 vote
1 answer
39 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
0 votes
0 answers
300 views

I recently wanted to create a new nextjs project, so I used: npx create-next-app@latest my-app. I cd'd into the my-app folder and hit yarn to install dependencies, and starting the project produced an ...
juztcode's user avatar
  • 1,433
Best practices
1 vote
1 replies
39 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
Best practices
0 votes
0 replies
42 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
0 votes
0 answers
49 views

The Chakra UI docs, https://chakra-ui.com/docs/styling/dark-mode, state the following: To force dark mode, set the dark className on any parent element, or the root element of your application. <...
Paul's user avatar
  • 1
-2 votes
0 answers
35 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
1 vote
1 answer
39 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
50 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
47 views

I'm using Next.js 14 with Server Actions and I'm tired of manually parsing and converting FormData values. Every action looks like this: 'use server' export async function createUser(formData: ...
toozuuu's user avatar
  • 11
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
68 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