Glossary term
What is server-only (server-only package)?
server-only stands for server-only package.
A tiny package that makes the build fail if a file marked server-only is imported into client code.
Learn it properly · Next.js App RouterLesson 1: Server Components and Client Components: What Runs WhereServer by default, what use client really means, the boundary, passing props across it, and the mistakes that leak secrets or bloat the bundle.