43 questions
2
votes
0
answers
79
views
Code Splitting With Dynamic Routes in Next.js
I'm working on a project using Next.js 15 with the App Router and dynamic routes. I've encountered an issue where JavaScript and CSS are not being split into separate chunks as expected when using ...
-1
votes
1
answer
47
views
how to fetch nextjs?
I want to fetch movie data, but when the API has new data, the server does not fetch again. It seems to only fetch once.
async function fetchAllMovies()
{
try
{
const fetchOptions = {
...
0
votes
0
answers
24
views
How can we get updated list using ssr of Next.js App Router?
I am getting data list using ssr of next app router.
I am going to remove one item of data by click.
I want to get data list what removed one item.
how to get the data list in next app router?
Shold I ...
2
votes
0
answers
217
views
Middleware redirects not working in NextJS app based routing
I am experiencing an issue with the middleware. I need to route the user based on their role, but the middleware is not able to route properly. Here's the explanation:
I have two roles in my app, ...
0
votes
1
answer
739
views
Page transitions depend on route (Next.js 14 & Framer Motion)
In my app, I've implemented a tab-styled navigation bar to facilitate navigation between different categories of places, each with its own route. I've successfully applied page transitions between ...
0
votes
1
answer
311
views
Fetching data from data file using a GraphQL Apollo Server in a NextJS (app route)
I am using Next.js 14 (app route) , React and graphql apollo framework. I have a file with data value in JSON format saved as local file. I want to display the data , using the server api. How do I ...
2
votes
1
answer
6k
views
BrowserAuthError:uninitialized_public_client_application . Getting this error when trying SSO with MSAL for React and Next.js application
Iam creating a React application with Next.js 14 and App router. Iam trying single Sign On (SSO) using Azure Msal.
I have created my Msal.ts which has MSAL configuration which iam using it my layout....
3
votes
1
answer
1k
views
How to debug TypeScript server side code of NextJS using WebStorm?
How to debug NextJS API in WebStorm. Also, I am using TypeScript and the app route as it is quite difficult to debug the API using console.log().
1
vote
0
answers
246
views
Next JS 14 Routing
Assume I have a file structure as this (I am using app routing with Next 14),
app->[id]->test-[slug]
Assume I didn't set the base path.
Now assume I want to set the base path as '/test'. In that ...
1
vote
2
answers
1k
views
Multiple fetch requests when using Array.map & filter
I'm working on developing an app using Next.js 13 with App Routes. I've hit a bit of a snag and could use some help.
On one of my pages, I have a grid set up to display information, and there's a ...
1
vote
0
answers
577
views
How to pass a URL to client side from server side in a Next.JS project?
So. I have a react / next.js project that I want to host in separate environments for separate customers. The project is the same for all customers, but they have separate databases/APIs. I want to be ...
0
votes
2
answers
1k
views
Next JS - Deploy server in shared plan Hostinger
I have recently started in the world of professional web development. I recently started a project to create a website.
I created the website with Next JS v13.5.3 with App Router. The website ...
0
votes
1
answer
3k
views
How To Set Dynamic Meta Keyword & Author In Next.js 13
I tried this but it's not working, In official documentation they only given example of dynamic title and description, plzz anyone help me.
I Tried This:
export const metadata = {
title: {
...
3
votes
4
answers
5k
views
NextAuth Error 'MISSING_NEXTAUTH_API_ROUTE_ERROR' in Next.js 13 (app route)
I'm using NextAuth version 4.22.1 with Next.js version 13.4.
I'm getting this error 'MISSING_NEXTAUTH_API_ROUTE_ERROR'. My auth provider is Auth0.
I've followed all of the steps required as mentioned ...
0
votes
3
answers
1k
views
While selecting App Router (yes) in Next.js 13 while installing through npx create-next-app@latest, does not work
When i install next js in my project, next js ask for App Router (yes/no), when i select yes it install smoothly with out any error BUT when i run (npm run dev) command i got an error and my localhost:...