How to correct implement white labelling with NextJS?
I need to create a project of multiple website using the same NextJS app but with a different backend and a different theme. For the backend it’s quite easy since I just use process.env
at building time to get different connection.
window.location.href not working in standalone mode (Next.js)
I’m building a /login page, which redirects to an external URL. This calls back to this page with a token. In a development server, I use window.location.href to change the URL (as opposed to router.push(), according to the docs).
Show/Edit dynamic routes inside catch-all router of Next.js App Router
I have a Next.js app router setup like this that shows /:category-handle
and /products/:product-handle
correctly, I need the product handle to be changed so that it shows /:category-handle/:product-handle
. I have tried nesting the product folder inside [...category]
folder but since its a catch all segment, it cannot show the dynamic routes inside it. I have looked through the Next.js docs and it looks like its not documented anywhere on how to achieve this. The [...category]
is a catch all since there are other routes as well e.g. about
, faqs
etc. and without the catch all the category route throws a 404.
ReferenceError: document is not defined next js
i made a website and im trying to run npm run build but i keep getting this error :
NextJS claims I’m using a client component when I’m not
I have an authentication page, that uses a button component, implemented with a server action as follows.
NextJS build error – no such file or directory for 500.html
I am migrating from Page Router to App router.
Nextjs/Typescript – recreation of scroll, image/text animation, fadeins
I am trying to recreate a demo template https://az-bold.webflow.io/ that uses scroll effects and mouse location tracking in nextjs/typescript.
Jarallax and nextjs not working – Cannot read properties of undefined (reading ‘userAgent’)
I am trying to recreate a demo template that uses jarallax in nextjs/typescript.
Create a js script from typescript then import that script in a website project
My goal is to develop a javascript script using typescript, and finally import that script as a third party script in any website project (I tested with Nextjs so far).
Calendar created with NextJS does not start with correct day
I have this code that renders a calendar (screenshot either attached or in the next message). Last month we started on a monday so it was fine but this month (may), it starts on a Wednesday. So, the calendar starts rendering on a Wednesday. I want to add a couple of empty boxes at the start so it always starts on a monday.