One line worth adding to your Next.js data file: import "server-only"
If anything imports it into a client component, the build breaks. Much better than finding your db client in the browser bundle a month later.
#nextjs #react #webdev #javascript #appsec #vibecoding #cursor
