42,158 questions
Advice
1
vote
0
replies
34
views
How do I make an authenticated request from my Next.js API on Supabase with RLS enabled?
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 ...
Best practices
1
vote
1
replies
38
views
What is the best practice for sharing types between a NestJS API with Prisma ORM and client applications?
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&...
Best practices
0
votes
3
replies
28
views
Nuxt.js pre-render data in the server for the seo purpose
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. ...
-2
votes
0
answers
32
views
What is the best way to add Monetag's ads to a NextJs app [closed]
I have a website on which i want to deploy Monetag ads. I have verified the website by adding the sw.js file in a public folder on root. Now i want to add the code of a ad zone. but as i add the code ...
Best practices
0
votes
0
replies
31
views
Next JS v16.0.3 TypeScript - The following required properties are missing: fb:app_id at Facebook Debugger
I am trying to develop an app using Next JS v16.0.3 App router TypeScript . Except facebook debugger id that called fb:app_id, all other meta tags are working good.
At inspect element it shows as ...
Tooling
0
votes
1
replies
35
views
Matching compression libraries between GO and NPM
For context:
I have 2 projects of next.js and go respectively, previously I had a logic to compress some data in next.js backend (getServerSideProps) then send this data to next.js client side and ...
0
votes
1
answer
101
views
ScrollTrigger not working after route navigation in Next.js (works on localhost, breaks in production)
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 ...
0
votes
1
answer
50
views
Inifinite loading with generateMetadata in Next.js 15.3.3 and React 19.2
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 &...
0
votes
3
answers
64
views
why nextjs is sending async prop from a component to a suspended child component
import {Suspense} from "react"
type Props = {
params: Promise<{joblistingId: string }>
}
export default function JoblistingPage(props: Props) {
return (
<...
-4
votes
1
answer
46
views
Zoho Mail contact form with Nodemailer not workign
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 ...
1
vote
1
answer
39
views
How to enable Undo and Redo using Quill?
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 ...
-2
votes
0
answers
41
views
Object literal may only specify known properties, and 'label' does not exist in type 'Node<NodeData>' [closed]
hey there everyone im new here can anybody tell me whats missing in my code its a simple reaactflow flow that can add 2 numbers the issue im getting is in the ladel i have defined everything still ...
2
votes
1
answer
49
views
What's the proper way to handle canonical URLs in Next.js for multi-region international sites?
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/...
-3
votes
0
answers
24
views
Next.js ChunkLoadError Only for US Users App Works Fine in India
Stack
Next.js 14.2.2
EC2 (Mumbai, ap-south-1)
Nginx reverse proxy
Cloudflare CDN (recently added, but issue existed even before)
The Issue
After deploying to production, our Next.js app works ...
0
votes
0
answers
14
views
Vercel production deploy failing with Contentful ETIMEDOUT during Next.js static generation (but preview and local builds succeed)
My Next.js app deploys successfully in preview and builds fine locally using a .env.
However, the Vercel production deploy (triggered via GitLab CI) fails with multiple
FetchError: request to https://...
1
vote
1
answer
64
views
robots.txt doesn't work, only url/robots does work
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....
0
votes
1
answer
68
views
AWS Cognito Google Sign-in with Next.js works, but Sign-out does not fully log the user out
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, ...
0
votes
1
answer
42
views
Issue in running an ai agent using inngest agent-kit
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}`...
0
votes
1
answer
42
views
In Next js project Error: <Html> should not be imported outside of pages/_document
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 ...
1
vote
1
answer
39
views
Nextjs 15.2 Mdx, Shiki, Rehype-pretty-code Build error
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 ...
-3
votes
1
answer
61
views
React/Next.js Layout & Dynamic Sizing
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 ...
-1
votes
0
answers
57
views
Why my prisma seed.ts does not work for path "../app/generated/prisma"
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 ...
0
votes
0
answers
69
views
403 PERMISSION_DENIED on Route Optimization API from Firebase App Hosting Despite Correct IAM & API Setup
Problem Description:
I am developing a Next.js application deployed on Firebase App Hosting. The application calls the Google Cloud Route Optimization API from a Server Action.
Despite carefully ...
1
vote
1
answer
60
views
Next.js 15 App Router — POST /api/contact returns 404 even though route.ts exists
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....
-1
votes
0
answers
111
views
Next.js 16 Partial Prerendering (PPR) + Cache Components: Why is my dynamic segment not streaming after first request?
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 ...