Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
45 views

In my nextjs 15 project with app router. i am trying to add meta details into one of its dynamic route using genrateMetaData function. but somehow its not being rendered in the view source of the page ...
vishnu's user avatar
  • 21
0 votes
0 answers
37 views

Issue Description: After upgrading Next.js from 15.3.1 to 15.4.3 and sitecore-jss from 22.7.0 to 22.8.0 (as recommended to resolve a critical vulnerability reported by Wiz in the [email protected] ...
Sithu05's user avatar
  • 146
0 votes
1 answer
103 views

I'm deploying a Next.js 15.3.3 app to Vercel and encountering a TypeScript error related to dynamic route parameters. The error says: "Type '{ params: { questionId: string; questionSlug: string; }...
Bikram Kumar Singh's user avatar
0 votes
0 answers
89 views

I'm building an ecommerce app with Next.js App Router and have these routes: /users/[id] for user profiles A root-level catch-all route [...slug] to handle multi-level dynamic paths like: /...
unique_alex020's user avatar
0 votes
1 answer
626 views

I am migrating my client-side React website to next.js and want to keep everything as SSG but with next.js file-based routing capabilities. I have this component on my React website, where I use a ...
Visrut's user avatar
  • 762
0 votes
1 answer
47 views

I am trying to achieve the following routing in this with AppRouter in NextJS. /company/activity /company/:cid/activity I cannot use Optional Catch-all segment, as I will have more pages with same ...
user3731783's user avatar
0 votes
1 answer
107 views

I am working on a SSG website using NEXTJS app router. I have generated a static build (OUT). I want dynamic path like localhost:3000/username I created src/app/[username]/page.js and when i enter ...
Mujahid Ali's user avatar
0 votes
0 answers
176 views

Problem In Next.js (version 14+), I'm working with Parallel Routes using the @ prefix and catch-all routes [...category]. My file structure is: app/ [...category]/ @view_category/ ...
unique_alex020's user avatar
0 votes
0 answers
29 views

interface Post { id: number; title: string; body: string; userId: number; tags: string[]; } async function getPost(id: string) { const response = await fetch(`https://dummyjson.com/posts/$...
Filics's user avatar
  • 3
2 votes
2 answers
321 views

I’m using Next.js 15 with the App Router and facing an issue with handling "Not Found" pages in nested routes /dashboard/somerandomtest. I have a route /dashboard/user, and inside /...
RomeoV17's user avatar
0 votes
0 answers
42 views

I'm learning Next.js and encountered a 404 error when implementing dynamic routing. I've followed the recommended folder structure and ensured my configuration is correct, yet I still face this issue. ...
Muskan jain's user avatar
0 votes
0 answers
28 views

I have three files, all in the folder 'test': actions.ts page.tsx Test.tsx The problem is that upon making a change in test.tsx (client side), I see [Fast Refresh] rebuilding for my page.tsx, and my ...
user29976497's user avatar
0 votes
1 answer
35 views

I’m working with Next.js Static Site Generation (SSG) and need to generate static paths for a route like /recovery-password/[token]. However, the token value is unknown in advance and changes every ...
Giacomo Pasquali's user avatar
0 votes
0 answers
15 views

I have component InitiateQuiz where student can choose quiz options like timer, number of questions and topics to be quizzed with, when student clicks on Generate, function handleGenerate will be ...
Aasem Shoshari's user avatar
0 votes
0 answers
87 views

I am experiencing an issue with the dynamic route page structure in Next.js's App Router. Specifically, when I print the props data params and searchParams in my local environment, everything works ...
user29693513's user avatar
0 votes
2 answers
105 views

I have a next js project where I have a form using which I fetch some data from backend and display to the user. The displayed data is in the form of a table and the user can click on the table row ...
Hardik3296's user avatar
2 votes
0 answers
182 views

I'm pretty new to Nextjs and I encountered this issue. My project setup: "next": "15.1.6", "react": "19.0.0", "tailwindcss": "3.3.2", I'm ...
kerja alfons's user avatar
0 votes
0 answers
104 views

My website has translations, and I want to translate my error pages. But I translate my pages with a dynamic route (/app/[locale]) and not-found.tsx must be at the root (app/not-found.tsx). I don't ...
Bob's user avatar
  • 1
0 votes
1 answer
884 views

I am trying to deploy this project and i keep getting an error message: app/api/invoice/markAsPaid/[invoiceId]/route.ts Type error: Route "app/api/invoice/markAsPaid/[invoiceId]/route.ts" ...
Syed Laeeq Ahmed's user avatar
0 votes
0 answers
23 views

I’m using Next.js 15 and encountering an issue where the API is being called twice, once from the generateMetadata() function and once from the page component function. I also used React’s cache() and ...
Janki Gohil's user avatar
0 votes
0 answers
78 views

I've built several webapps in nextjs in exactly same way as current one and never had this issue. After clicking Link element in product card it opens new dynamic page depending on product id, but ...
san sal's user avatar
0 votes
1 answer
47 views

I want to wrap a Link tag around an image. However when doing so, the image appears much smaller than before (prior to adding the Link tag). How can I get the image back to its original size? For ...
codian's user avatar
  • 17
0 votes
0 answers
58 views

This is my app/exam/[category]/page.tsx route page.. which does some validation and returns notfound() when the response is not ok from the api. This indeed returns a notFound page but returns a 200 ...
Siddhesh Haryan's user avatar
0 votes
1 answer
159 views

Following this question, I have a scenario in which I am fetching my agent (product) data from API by the agent slug, where the slug is dynamic. In NextJS 14 app router I am handling this with dynamic ...
AmirManshadi's user avatar
0 votes
0 answers
48 views

I'm working on a Next.js application and need to implement a dynamic URL segment that comes right after the main domain—something like localhost:3000/accountName/.... The value accountName is stored ...
Fanur Khusainov's user avatar
0 votes
1 answer
680 views

I'm fairly new to Next.js and I've been trying to implement dynamic routing to one of my pages. Following the docs, it says to add the prop params to the page as a promise that returns the param like ...
Ken's user avatar
  • 1,511
1 vote
0 answers
157 views

This may be a duplicate of Next.js intercepting routes feature doesn't work in production mode. I'm facing the same problem, locally everything works as expected in dev and prod mode, but when I ...
yurii's user avatar
  • 10
1 vote
0 answers
244 views

I'm having trouble with dynamic routing in Astro. I'm working with a Content Collection called "Articles" and then created a route: [slug].astro. However, the slug does not resolve to the ...
kaboom_coder's user avatar
0 votes
2 answers
205 views

After creating a dynamic route [id] it contains 2 pages, a server side component where the error is and a client side PolicyVerificationClient.tsx which takes the params Certificatenumber and id. ...
Wania Mirza's user avatar
-1 votes
1 answer
91 views

I am trying to redirect to the welcome page after successfully submitting the form in my handleFinish function. Since no errors are raised in the try/catch block, I mark the form as 'complete' and ...
Demian's user avatar
  • 11
0 votes
1 answer
108 views

I have a NextJS (v.14) app that utilizes pages router and static exports and acts more or less like an SPA for most things: /** @type {import('next').NextConfig} */ const nextConfig = { output: '...
MKF's user avatar
  • 696
0 votes
1 answer
227 views

I have a Next.js application with internationalization, using next-i18next. Here’s an example app that demonstrates the setup: Live Demo GitHub Repository Currently, when navigating to the root path, ...
fiorentina.gf's user avatar
0 votes
2 answers
521 views

I am facing issue with nextjs Link component. It is always replacing the url path with whatever is given in href field. For example: I have this folder structure for app routing: -> profile ...
Yash patel's user avatar
14 votes
13 answers
29k views

I have a get endpoint as follows: import { NextResponse } from 'next/server'; import connection from '@config/db'; export async function GET(req: Request, context: { params: { providerId: number } }) ...
stefdec's user avatar
  • 187
1 vote
1 answer
169 views

I have a file architecture as follows: projects | -page.tsx -[id] | -template.tsx -overview | -page.tsx -settings | -page.tsx I am using server-rendered pages. I want ...
Alex H Hadik's user avatar
0 votes
1 answer
154 views

I've had to find different ways of getting through the tutorial, such as seeding my postgres database with my deployed app as opposed to through my local database, leaving me stuck having to code from ...
Ayanda Gatsha's user avatar
1 vote
0 answers
453 views

I have a NextJS 14 (app router) application with Clerk auth, but I want to add dynamic subdomains so each business will have a subdomain (e.g. thomas-bistro.mysite.app). Due to Clerk middleware this ...
Thomas Price's user avatar
1 vote
0 answers
69 views

NEXTJS VERSION : 14.2.5 "dependencies": { "@clerk/backend": "1.6.2", "@clerk/clerk-react": "5.4.0", "@clerk/shared": "2.5....
saurabh kamble's user avatar
0 votes
2 answers
74 views

I have a table of values with varying values of location. I am trying to filter the rows in the database by matching the location value. The code is 'use client'; import { useState, useEffect } from '...
James Lee's user avatar
1 vote
0 answers
158 views

When I use npm run build in terminal on my nextjs application, I get this error. I'm having trouble deploying but I can host it locally. What does this path page: / refer to? I also made following ...
Power Pandi's user avatar
0 votes
2 answers
43 views

On my NextJs-project I have the following three documents. page.tsx in src/app/[id]/dashboard: import { Button } from 'components/ui/button'; import Link from 'next/link'; import { cookies } from '...
user26616445's user avatar
0 votes
0 answers
121 views

I have images under my public folder. I can see all images in the development but there is a problem in deployment. The path works well in the static rendered pages and I can see my images. However, ...
Ahmet Said Olgun's user avatar
1 vote
2 answers
329 views

I am working through the "Learn Next.js"-tutorial and I am stuck on this page, specifically on creating the page for editing an invoice. I keep getting the error "404 - Page not found&...
webwurm's user avatar
  • 89
0 votes
1 answer
87 views

I have a problem when creating a new layout.tsx file in (auth) folder, when I import the globals.scss file I can't apply the styles to the whole web. Please let me know where the issue is. Thanks all. ...
Duy Hung's user avatar
1 vote
0 answers
220 views

I'm on NextJS 14 with the App router, and I'm using output: "export" to generate static files for production. I'm using the generateStaticParams function inside /[id]/page.tsx to export ...
Rom-888's user avatar
  • 906
0 votes
1 answer
289 views

This is the code placed inside /app/api/password/reset/confirm/[userId]/[idToken].ts. import { NextRequest, NextResponse } from 'next/server'; // Define and export the GET handler export const GET = ...
Muhammad Anas's user avatar
0 votes
0 answers
332 views

I'm working with Next.js 14 and have a dynamic route with more than 10,000 products. The API calls made when a product is clicked and page load (found via a search bar) are slow. Unfortunately, I ...
Damiano Dotto's user avatar
0 votes
0 answers
234 views

I am using Next.js 14 and my folder is like this: In page.tsx: export const dynamicParams = true; export const revalidate = 3600; export function generateStaticParams() { return [ {"...
Rohit Azad Malik's user avatar
1 vote
1 answer
47 views

enter image description here Problem Details I encountered an error while using a Next.js application with TypeScript. Specifically, I created a component AboutPage that takes a prop named para, which ...
Shehzad Hussain's user avatar
0 votes
0 answers
184 views

Just started learning next js and ran into this problem. When I click on view profile i get a not found page and not the desired userDetailsPage. Not getting the params. My folder structure is like ...
Hemant Sharma's user avatar

1
2 3 4 5 6