Database configuration
Biovity uses PostgreSQL as its database, typically hosted on Supabase.PostgreSQL connection string for your database.Format:
postgresql://user:password@host:5432/databaseExample:Authentication
Biovity uses Better Auth for authentication. These variables are required for the auth system to work.Secret key used to sign and verify authentication tokens. Must be a cryptographically secure random string.Generate with:Example:
The base URL where your Better Auth API is accessible. This should match your application’s URL.Development:Production:
Client-side variables
These variables are prefixed withNEXT_PUBLIC_ and are exposed to the browser. Only include non-sensitive information.
The public URL of your application. Used for client-side redirects and API calls.Development:Production:
The canonical URL of your site. Used for SEO and social sharing.Example:
Optional variables
The environment mode for Node.js. Automatically set by most deployment platforms.Values:
development, production, testExample:Setting up your environment
Generate authentication secret
Generate a secure secret for Better Auth:Copy the output and set it as
BETTER_AUTH_SECRET in your .env.local file.Configure database URL
Add your PostgreSQL connection string to
DATABASE_URL. If using Supabase, you can find this in your project settings under “Database” > “Connection string”.Deployment platforms
When deploying to platforms like Vercel, add these environment variables in your project settings:- Navigate to your project settings
- Go to “Environment Variables”
- Add each variable with the appropriate value for your environment
- Select which environments (Production, Preview, Development) should use each variable
Most platforms automatically set
NODE_ENV based on the deployment environment. You typically don’t need to set this manually.