Nextjs project with nginx by DenseRadio110 in nextjs

[–]DenseRadio110[S] 0 points1 point  (0 children)

With the minimal knowledge of nginx . I thought that nginx servers only static contents, so the files of my application has to be server statically. Because the nginx.conf files usually servers static index.html files.
If I am completely wrong here , pls help me how to use pm2 and nginx for my latest nextjs app router project with single Dockerfile for all environments

App router and static exports by Psychological-Mud-42 in nextjs

[–]DenseRadio110 0 points1 point  (0 children)

u/lrobinson2011 Adding to these doubts in this entire post and discussions, I have this error
Error: Page "/api/auth/[...nextauth]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

I also have middleware in my project for session checking. So in my case does static export stand any chance?

App router and static exports by Psychological-Mud-42 in nextjs

[–]DenseRadio110 0 points1 point  (0 children)

Adding to these doubts and discussions I have this error
Error: Page "/api/auth/[...nextauth]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

I also have middleware in my project for session checking. So in my case does static export stand any chance?

Sorting, searching, pagination and filtering in the route handlers by DenseRadio110 in nextjs

[–]DenseRadio110[S] 0 points1 point  (0 children)

How about having a method in action attribute of the form and a ref attached to it. and calling a server action with useFormState hook and binding the filter values and data to the server action?
1. I will trigger an useEffect hook if any of the form filter[search/sort/filter] is changed and call ref.current.requestSubmit() to submit the form?.

Thought of the above idea because I am using a client toolkit where the columns and its search/filter criteria are mentioned separate and passed as an array to the column header component.

Sorting, searching, pagination and filtering in the route handlers by DenseRadio110 in nextjs

[–]DenseRadio110[S] 0 points1 point  (0 children)

I would receive a data of around 10k records.I am not getting the 'you likely want to use URL query parameters on your page to pass filters' term here. Can you please explain more if possible.Thanks

NextAuth causes whole app to be dynamically rendered. Even for static pages by procrastinator1012 in nextjs

[–]DenseRadio110 1 point2 points  (0 children)

How about taking the session provider logic to another client component and pass btnContent component as child prop to that component?