Skip to content

Glossary: Next.js Beyond the Basics

server-only

Also written: import "server-only"

A package that makes the build fail if a Client Component imports the file, so database and session code never reaches the browser.

Where the book teaches it

Related terms

Drizzle ORM