All Questions
Tagged with nextjs14 nextjs-dynamic-routing
24 questions
0
votes
0
answers
72
views
Scroll-to-top not working when Link element opens new page
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 ...
0
votes
1
answer
117
views
NextJS 14 app router dynamic route returns the 404 page but with 200 status code, how to set the status code to 404 without removing the loading.tsx?
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 ...
-1
votes
1
answer
41
views
I get a "Unhandled Runtime Error TypeError: network error" if i try to redirect (router.push) from the client
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 ...
0
votes
1
answer
58
views
NextJS static exports and using window.open() to open page on new tab results in 404 error in production
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: '...
0
votes
0
answers
47
views
How to correctly implement scss/sass?
Having an issue with Next.js regarding its Webpack and how it handles SCSS APP.
When I'm adding this to my next.config.ts:
webpack(config, { isServer }) {
if (!isServer) {
config.module....
0
votes
2
answers
174
views
Nextjs Link always replacing route instead of appending
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
...
0
votes
0
answers
75
views
Handling dynamic route data fetching and context in Next.js 13 with server components?
I'm working on a Next.js 14 app using the new app directory and server components. I have two main pages under the /email route:
/email - This page lists all emails.
/email/[id] - This page shows the ...
0
votes
0
answers
11
views
Issue in rendering the content
I have my backend implementation running on render .com for frontend I am using next js under src I have login and admin-dash that contains page.jsx for both the folders login is getting done and ...
0
votes
0
answers
125
views
Redirection method in next js but with a status code of 308 not the 307 and also how to do this for params in url
In Next js 14 I have routes like this /[title]/[location]?page=1. for page=1 I have data in the page but for page=9 i don't have any data and I want to redirect them to the /[title]/[location] page, ...
0
votes
0
answers
354
views
How to use Dynamic Subdomains in NextJS 14 with Clerk Auth
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 ...
1
vote
0
answers
49
views
Getting error in nextjs app with clerk plugin
NEXTJS VERSION : 14.2.5
"dependencies": {
"@clerk/backend": "1.6.2",
"@clerk/clerk-react": "5.4.0",
"@clerk/shared": "2.5....
1
vote
0
answers
154
views
NextJs build run Error: Export encountered errors on following paths: /page: /
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 ...
0
votes
2
answers
43
views
Why is no parameter passed in link?
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 '...
0
votes
0
answers
80
views
Nextjs 14 dark screen chunks error coming in production
I am having this error on my Nextjs 14 application. It comes anytime on the site and goes away after hard refresh.There is no error in console
I tried disabling cache but still the issue arises its ...
0
votes
0
answers
17
views
Next-Approute-issue with routegroup after deployment to linux server
We implemetend routegroup in our nextjs project, as shown below there is group created "(base)" and we have "/home" inside this folder, this functionality works well in local ...