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.
Glossary: Next.js Beyond the Basics
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.