I've encountered an issue with my code where I am using prisma to fetch data from my postgreSQL database. The problem lies in the fact that the function getServerSideProps is not being called at all. Even the log message is not being displayed in the conso ...
While developing an app using NextJS and RTK Query, everything functions properly locally after building. However, upon deployment on Vercel, the server-side rendering logic (specifically for 2 pages utilizing getServerSideProps) throws a 500 error. I fol ...
Lately, I've been exploring the world of web development by creating a web app using NextJS. While I have some knowledge of the basics in this field, I found myself a bit lost when working with NextJS since I hadn't worked with React before. One ...
https://i.stack.imgur.com/9vt70.jpg Encountering an error when trying to access my login page. Using the t3 stack with next auth and here is my [...nextauth].ts file export const authOptions: NextAuthOptions = { // Include user.id on session callbacks ...
Currently, I am faced with the task of updating product data based on different categories. In order to achieve this, I have set up an index page along with two components called Products and Categories. Initially, I retrieve all products using the getServ ...
Currently, I am deploying a NextJS app across multiple K8 environments, each with its own set of variables that need to be passed. Although I can pass these variables and retrieve them using getServerSideProps(), the issue arises as this function only work ...
Encountering an issue with Next.js: Upon reaching pages/users, the following error is displayed: ./node_modules/mongodb/lib/cmap/auth/gssapi.js:4:0 Module not found: Can't resolve 'dns' Import trace for requested module: ./node_modules/mon ...
How can I submit form data from a NextJS page to another page with server-side rendering? The function getServerSideProps() on the receiving page requires these form data to make an API call. I considered using localStorage/sessionStorage to store the da ...
Exploring Next.js with getStaticProps and getServerSide props, I developed a project to familiarize myself with the concepts. My simple component generates a table row based on user data. While I have not encountered any issues with null objects, I notice ...
I'm scratching my head over why server-side props aren't working for me in nextjs (v12). I'm utilizing getServerSideProps inside pages/details/index.tsx. export const getServerSideProps = async (context: any) => { const name = context.query.name; co ...
Is there a way to obtain the pathname without using client-side rendering? I have been searching for information on how to utilize the getServerSideProps function, but so far with no luck. Initially, I attempted to employ usePathname; however, this result ...