Server-only modules in Next.js are special files imported only on the server side. When you import such a module, Next.js ensures it runs only on the server and is not sent to the browser. This keeps sensitive code safe and reduces client bundle size. In the example, the server-only module is imported and called during server rendering. The server generates HTML with the secret data and sends it to the client. The client displays the data but never runs or sees the server-only code. This separation is clear in the execution steps and variable tracking. Beginners often wonder why server code is not in the client bundle or if client code can call server-only functions. The answer is no, client code only receives rendered output or data from the server. If server-only modules are mistakenly imported in client code, the build will fail or include unwanted code. This visual trace helps understand how Next.js handles server-only modules safely and efficiently.