Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [next.js]

Next.js is a minimalistic framework for server-rendered React applications as well as statically exported React apps.

Filter by
Sorted by
Tagged with
4 votes
2 answers
91 views

better-SQLite3 and JS/Next.js - updating data using "transaction"- shorter / better code?

I am pretty new to SQL databases and in particular to the better-SQLite3 database. I have managed to insert, update, and delete data in a way I desire. All of it running in the background of a self-...
godfatherjohn's user avatar
1 vote
1 answer
53 views

Multi Step Record Creation Form with Validation Using Formik, Yup, and MUI

This component is a multistep popup form designed to handle job vacancy creation. It uses MUI for the UI, Formik and Yup for form handling and validation. The form is divided into 4 steps: Job Details,...
Onlit's user avatar
  • 11
1 vote
1 answer
59 views

Databases, dependency injection and static methods

I'm working on a Next.js app and looking at the best way to structure database access. With Next.js and web based apps in general, there are lots of different "server actions", aka, API ...
Will Calderwood's user avatar
1 vote
0 answers
123 views

Better way to parse data from nested JSON in Javascript/ NextJS

The nested JSON file contains names of US states and corresponding cities. City.json ...
aries0152's user avatar
  • 189
2 votes
1 answer
58 views

Do you think it's a good schema.prisma?

i'm trying to learn backend with Next JS, and i'm using Prisma + MongoDB. I want to create a simple website with a user with a cart and some products. here my schema : ...
Jonathan's user avatar
2 votes
0 answers
846 views

React/Next.js code for a "back to top" button

Pretty new to React/Next.js. This is for a "back to top" button. Any thoughts on whether this can be improved? I haven't really got my head around when ...
Matt's user avatar
  • 21
1 vote
0 answers
694 views

NextJS NextAuth Implementation using Custom Token Source

I am new to NextJS, it has somewhat been forced on me and the existing code was not authenticating correctly (after a period the site would hang - not return to login - this was due to the way we were ...
MoonKnight's user avatar
4 votes
1 answer
1k views

NextJS with a root level catchall route for all URLs dynamic middleware that splits into components

Here is the solution that I have. Due to the legacy product we have all of our URLs in one big Slug model in rails that maps URLs to models. EG ...
Romuloux's user avatar

Morty Proxy This is a proxified and sanitized view of the page, visit original site.