데브허브 | DEVHUB | You're Leaking Server Data in Next.js!
Next.js is amazing, especially with the release of the App Router and Server Components. We now have the freedom to blend server-side rendering with the efficiency of regular React code. But here’s the problem. If you don’t properly separate server-side code from client-side code, you might be leaking sensitive data faster than I can count to three. Today, I will go through real examples of how server-side data can accidentally be exposed to the client without you even noticing. And of course, I’ll show you exactly how to fix it.
🔒 Get started with Kinde: https://dub.sh/xeU8r3v
📸 Screen Recording Software: https://dub.sh/eDa47SO
🚀 Checkout Cal for Free: https://dub.sh/FAuffAy
👨🏻💻 GitHub Repository: https://github.com/ski043/server-clie...
🌍 My Website: https://janmarshal.com/
✅ Follow me on X: https://x.com/janmarshaldev
📧 Business ONLY: jan@alenix.de
Timestamps:
00:00 Intro
01:00 Leaking Secrets
04:20 Fix #1
05:20 Fix #2
07:00 Leaking Private Data
09:00 Authentication
14:05 Leaking Data due to Reusability
16:20 Fix with Data Access Layer