Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/Storx/llms.txt

Use this file to discover all available pages before exploring further.

Storx reads all runtime configuration from a .env.local file in the project root. This file is never committed to version control — it must be created manually on each machine or deployment environment before running the application.

Template

Create a .env.local file at the root of your project and populate every value before starting the development server or deploying:
.env.local
# Database
DATABASE_URL=

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/signin
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/signup

# ImageKit
NEXT_PUBLIC_IMAGEKIT_PUBLIC_KEY=
IMAGEKIT_PRIVATE_KEY=
NEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT=

Variable Reference

DATABASE_URL
string
required
The full Neon PostgreSQL connection string used by both the Drizzle ORM client and the migration runner. Obtain this from your Neon project dashboard.Example: postgresql://user:password@ep-cool-name-123456.us-east-2.aws.neon.tech/neondb?sslmode=require
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
string
required
The Clerk publishable key. Prefixed with NEXT_PUBLIC_ so it is embedded in the client-side bundle. Safe to expose to the browser. Obtain this from your Clerk application dashboard.Example: pk_test_...
CLERK_SECRET_KEY
string
required
The Clerk secret key used exclusively on the server to verify session tokens and call the Clerk backend API. Never exposed to the browser.Example: sk_test_...
NEXT_PUBLIC_CLERK_SIGN_IN_URL
string
default:"/signin"
The path Clerk redirects unauthenticated users to when sign-in is required. Must match the route where the SignInForm component is rendered.Default: /signin
NEXT_PUBLIC_CLERK_SIGN_UP_URL
string
default:"/signup"
The path Clerk redirects users to when they need to create a new account. Must match the route where the SignUpForm component is rendered.Default: /signup
NEXT_PUBLIC_IMAGEKIT_PUBLIC_KEY
string
required
The ImageKit public key. Prefixed with NEXT_PUBLIC_ so it is available in the browser for client-side upload authentication flows.Example: public_...
IMAGEKIT_PRIVATE_KEY
string
required
The ImageKit private key used on the server to generate authentication parameters for secure uploads. Never exposed to the browser.Example: private_...
NEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT
string
required
The base URL endpoint for your ImageKit account. All file URLs delivered by ImageKit are constructed relative to this endpoint.Example: https://ik.imagekit.io/your_imagekit_id

Never commit .env.local to version control. It contains secret keys that grant full access to your database, Clerk account, and ImageKit account. Add .env.local to your .gitignore file — Next.js does this by default when you bootstrap a project with create-next-app.
For detailed setup instructions for each service, see the dedicated configuration guides:

Build docs developers (and LLMs) love