.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
secret
CLERK AUTHENTICATION Get these from https://dashboard.clerk.com
CLERK_SECRET_KEY
secret
NEXT_PUBLIC_CLERK_SIGN_IN_URL
Clerk URLs (customize if needed)
NEXT_PUBLIC_CLERK_SIGN_UP_URL
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL
CLERK_WEBHOOK_SECRET
secret
Clerk Webhook Secret (for syncing users to Firestore)
NEXT_PUBLIC_FIREBASE_API_KEY
secret
FIREBASE Get these from Firebase Console > Project Settings > General
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
NEXT_PUBLIC_FIREBASE_PROJECT_ID
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
NEXT_PUBLIC_FIREBASE_APP_ID
FIREBASE_ADMIN_PROJECT_ID
Firebase Admin SDK (for server-side operations)
FIREBASE_ADMIN_CLIENT_EMAIL
FIREBASE_ADMIN_PRIVATE_KEY
secret
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY
secret
LIVEBLOCKS Get these from https://liveblocks.io/dashboard
LIVEBLOCKS_SECRET_KEY
secret
OPENAI_API_KEY
secret
OPENAI Get this from https://platform.openai.com/api-keys
PINECONE_API_KEY
secret
PINECONE Get these from https://app.pinecone.io
brew install flyctl && fly launch --from https://github.com/amaancoderx/ai-notion-clone
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/amaancoderx/ai-notion-clone
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/amaancoderx/ai-notion-clone