How can I pass an Object to the page component when using Dynamic Routing in NextJS?
I am using the “app” router in NextJS and want to use Dynamic Routes in the context of dynamically creating pages for posts for a blog.
Next.js: Custom Server with Standalone Output
I’m working on a Next.js project where I need to CRT, which requires using a custom server. I’ve created a server.js file for this purpose. However, I also want to use the output: 'standalone'
option in my next.config.js for optimized builds.
The issue is that when I build the project with output: 'standalone'
, it creates its own server.js file, which conflicts with my custom server.
Next.js: Custom Server with Standalone Output
I’m working on a Next.js project where I need to CRT, which requires using a custom server. I’ve created a server.js file for this purpose. However, I also want to use the output: 'standalone'
option in my next.config.js for optimized builds.
The issue is that when I build the project with output: 'standalone'
, it creates its own server.js file, which conflicts with my custom server.
Next.js: Custom Server with Standalone Output
I’m working on a Next.js project where I need to CRT, which requires using a custom server. I’ve created a server.js file for this purpose. However, I also want to use the output: 'standalone'
option in my next.config.js for optimized builds.
The issue is that when I build the project with output: 'standalone'
, it creates its own server.js file, which conflicts with my custom server.
How to run function in nextjs on router.push complete
I’m using event bus with mitt
library and I want to listen to logout
even and when it occurs, call:
How to run function in nextjs on router.push complete
I’m using event bus with mitt
library and I want to listen to logout
even and when it occurs, call:
How to work on frontend of app that requires login?
Beginner frontend developer here. Im working on the styling of a friend’s next.js app UI. I cloned the code, but when running on localhost, I need to enter in my login credentials which don’t work locally (they do work on the deployed app).
Can Next.js cache routes with search params?
I have a route named “/search”, and it is a client component that shows contents according to search params.
For instance, when the URL is ‘/search?q=one’, it sends a request with the query parameter and displays results related to the keyword ‘one’.
Nextjs does not scroll properly to anchor element when other elements changes its size
In my nextjs app I have a page with some content that is loaded dynamically using react-query
(i.e. it changes its size because initially spinner is rendered and then it is replaced by proper content) and with #reviews
div that stores reviews. I have an url
like this:
‘use client’ component not updating when user logs in
I’m new to the Next.js framework and have the issue described in the title.