469,996 questions
Best practices
0
votes
2
replies
48
views
How to "sync" Prisma with sessions?
I have a node js code that authenticates with cookies and sessions:
import express from "express";
import session from "express-session";
import postgreSession from "connect-...
0
votes
0
answers
45
views
Fresh Next.js install throws createClientModuleProxy / buildId errors [closed]
Fresh Next.js install throws createClientModuleProxy / deploymentId / buildId errors on Node.js v24
I created a fresh Next.js app using:
npx create-next-app@latest my-app
Then I ran:
npm run dev
...
Tooling
0
votes
2
replies
54
views
Is there any other way of storing redirectUrl other than session
So the problem is right now lets say if a user have not logged in and he clicks on something which needs to be logged in he pops up in the login page and the then once he login in we redirect him to ...
-4
votes
0
answers
60
views
How can I reliably extract and analyze JSON-LD schema markup from competitor websites in Node.js? [closed]
I’m working on a competitive analysis tool and needed a way to extract structured data (mainly JSON-LD schema markup) from competitor websites automatically instead of manually inspecting page source ...
1
vote
1
answer
68
views
Where can I find a list of valid values for esbuild's "target" property? [closed]
This is not answered by the docs https://esbuild.github.io/api/#target
https://github.com/search?q=repo%3Aevanw%2Fesbuild%20node22&type=code
node22 is a valid target according to their CHANGELOG ...
Best practices
0
votes
1
replies
49
views
(Partial) React hydration of dynamically created documents
I'm developing an extended dialect of Markdown. I want to make certain elements interactive and am aiming for a SSR/hydration approach using vanilla React. However most of the document is "dumb&...
Advice
0
votes
3
replies
104
views
Graduates degree: a study about unit testing
Hello i am a student working on my graduatesdegree, and because testing hasnt appeared in the 2 year curiculum i've decided to base my graduates thesis on unit testing. The thesis is made during the ...
0
votes
1
answer
129
views
All off-session payments are rejected with network_decline_code 59
I have a flow where i'm unable to charge the full payment via off-session payments and its being rejected from banks with Failure code: card_declined and network_decline_code: 59.
Customer buys a ...
-1
votes
1
answer
70
views
How to implement conditional runtime validations for Create (no ID) and Update (required ID) within a single Builder pattern in TypeScript? [closed]
Note: I am using a Permission entity below just as a simple, generic example to illustrate the structural problem.
I am implementing the Builder pattern in a Node.js (TypeScript) backend to ...
Advice
2
votes
10
replies
209
views
JavaScript or Typescript
For those working with JavaScript whether client-side, server-side, or both how much of a necessity is TypeScript in 2026? I keep seeing videos and forum threads where developers swear they'll always ...
Advice
1
vote
4
replies
84
views
Where is this validation typically used?
Is this validation code snippet typically used only with the Put and Delete methods?
if (result.affectedRows === 0) {
return res.status(404).json({
message: "Record not found."
...
Best practices
0
votes
0
replies
77
views
Handling 'clientError' events in http.Server, Node.js
I have a question regarding the implementation of the socket.end(), socket.write(), and socket.destroy() methods, where socket is a net.Socket instance, as well as handling the 'clientError' event on ...
-3
votes
0
answers
30
views
Chrome extension fetch fails when uploading PDF with FormData to Express/multer backend [closed]
We are working on a browser-extension-based data protection feature where files uploaded into AI tools are scanned before they are allowed to be sent. The goal is to detect sensitive information such ...
Advice
0
votes
1
replies
58
views
Open Hyperlink in Front of Excel Tab in Node.js Excel Export
I wrote code in Node.js ( version 10 ) for Excel. The Excel file has a URL column. When I click the link, it opens in the browser, but the browser opens behind the Excel tab, so the user doesn't know ...
1
vote
1
answer
65
views
Dokploy Nextjs Dockerfile not working in ISR
I am building nextjs dockerfile in Dokploy. It works fine for most cases, but if my nextjs build needs prisma during build time, It fails because dockerfile doesnt pass DATABASE_URL to prisma. What do ...
