Timify relies on a small, focused set of environment variables to configure its database connection and authentication layer. You define these in aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Aking16/timify/llms.txt
Use this file to discover all available pages before exploring further.
.env file at the root of your project — Next.js picks them up automatically at build time and at runtime via the Node.js process.
Environment File Setup
Create a.env file (or .env.local for local overrides) in the project root before running the app. Never commit secrets such as BETTER_AUTH_SECRET to version control — add .env to your .gitignore.
.env
.env.local takes precedence over .env in Next.js and is excluded from
version control by default. It is the recommended place for secrets in
development.Variable Reference
Path to the SQLite database file, expressed in libsql URL format. The
file:
prefix is required by @libsql/client. The path is resolved relative to the
project root.Examples:A secret string used by better-auth to sign and verify session tokens. This
value must be kept confidential. A compromised secret allows an attacker to
forge valid session cookies.Examples:
The fully-qualified base URL of the Timify app. better-auth uses this value
for trusted origin validation and for constructing callback URLs. It must
exactly match the URL your browser uses to reach the app — including the
protocol and port.Examples:
Environment-Specific Recommendations
Development environment
Development environment
During local development the defaults work out of the box. You only need to
supply
BETTER_AUTH_SECRET since it has no default value..env.local
Production environment
Production environment
In production, all three variables must be explicitly set:Additionally, update
.env
src/lib/auth.ts to enable secure cookies:src/lib/auth.ts (production change)
