0

The Next.js 13 docs recommend keeping a singleton object for database access in development mode as Node.js clears the cache upon each reload dropping the previous instances.

It got me wondering. Why not have a singleton db object in production, too? What would be the best argument not to?

calmity
  • 113
  • 1
  • 9

0 Answers0