📦 Installation
This guide will help you install next-supa-utils and its peer dependencies.
1. Install via NPM/Yarn/PNPM
Run the following command in your terminal:
npm install next-supa-utils
If you use yarn:
yarn add next-supa-utils
2. Peer Dependencies
next-supa-utils relies on standard React, Next.js, and Supabase packages. Ensure your project meets the following version requirements:
| Package | Minimum Version | Note |
|---|---|---|
react | >= 18.0.0 | Required for Server Components/Actions |
next | >= 14.0.0 | Requires App Router (app/) |
@supabase/supabase-js | ^2.0.0 | Core Supabase JS SDK |
@supabase/ssr | >= 0.5.0 | Server-Side Rendering tools |
If you just initialized a fresh Next.js project, you likely already meet all React and Next.js requirements.
3. Next Steps
Once installed, you must configure your Supabase credentials. Head over to the Environment Variables section to learn how.