This guide outlines the steps to deploy Literaku to production.
- Vercel Account: Use Vercel for the best Next.js hosting experience.
- Supabase Project: Production database instance.
- GitHub Repository: Code pushed to a repo.
Ensure the following variables are set in your deployment environment (e.g., Vercel Project Settings):
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
NEXTAUTH_SECRET=...
NEXTAUTH_URL=https://your-domain.com- Login to Vercel.
- Click "Add New..." -> "Project".
- Import your
literakuGitHub repository. - In "Configure Project":
- Framework Preset: Next.js
- Environment Variables: Add the variables listed above.
- Click Deploy.
- Build the image:
docker build -t literaku . - Run container:
docker run -p 3000:3000 --env-file .env.local literaku
- Database: Ensure your Supabase RLS policies are active.
- Auth: Update your NextAuth / Supabase Auth redirect URLs to match your production domain.