Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Supabase Configuration
VITE_SUPABASE_URL=https://krrawqhjcpqjtsgnexzj.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key-here
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here

# OpenAI Configuration
OPENAI_API_KEY=your-openai-api-key-here

# Stripe Configuration
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_your-publishable-key-here
STRIPE_SECRET_KEY=sk_test_your-secret-key-here

# API Configuration
NODE_ENV=production
FRONTEND_URL=https://your-domain.vercel.app
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.20.4
61 changes: 61 additions & 0 deletions DEPLOYMENT_FIX.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 🚨 IMMEDIATE DEPLOYMENT FIX

## The Problem
Vercel is trying to reference environment variable secrets that don't exist, causing the deployment to fail.

## ✅ INSTANT FIX (Do This Now)

### Step 1: Use This Repository
The repository has been updated to remove all problematic secret references. Redeploy from GitHub.

### Step 2: Add Environment Variables in Vercel Dashboard

**IMPORTANT**: Add these variables directly in Vercel, NOT as secrets:

```
Variable Name: VITE_SUPABASE_URL
Value: https://krrawqhjcpqjtsgnexzj.supabase.co
Environment: Production, Preview, Development

Variable Name: VITE_SUPABASE_ANON_KEY
Value: [Get from Supabase → Settings → API → anon public key]
Environment: Production, Preview, Development

Variable Name: VITE_STRIPE_PUBLISHABLE_KEY
Value: [Get from Stripe → Developers → API Keys → Publishable key]
Environment: Production, Preview, Development
```

### Step 3: Get Your Missing Keys

#### Supabase Anon Key:
1. Go to https://supabase.com/dashboard
2. Select your project
3. Go to Settings → API
4. Copy the "anon public" key

#### Stripe Publishable Key:
1. Go to https://stripe.com/dashboard
2. Go to Developers → API Keys
3. Copy the "Publishable key" (starts with pk_test_)

### Step 4: Deploy

1. **Import from GitHub**: https://github.com/djtlb/contentflow
2. **Add the 3 environment variables above**
3. **Deploy**

## 🎯 Expected Result

✅ Deployment will succeed
✅ No more environment variable errors
✅ ContentFlow will be live and functional

## 🚀 After Deployment

1. **Visit your live site**
2. **Sign up with: sallykamari61@gmail.com**
3. **Access admin at: your-url.vercel.app/admin**
4. **Start creating promotional campaigns**

Your ContentFlow platform will be generating revenue within hours!
98 changes: 98 additions & 0 deletions DEPLOYMENT_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# ContentFlow - Deployment Guide

## 🚀 All Deployment Issues Fixed!

Your ContentFlow platform is now ready for clean deployment to Vercel.

### ✅ **Issues Resolved:**
- **CSS @import order** - Fixed viral-brand.css imports
- **Build optimization** - Reduced chunk sizes and warnings
- **Package conflicts** - Removed npm lock files
- **Security** - Protected API keys from git

## 🔧 **Quick Deploy to Vercel:**

### 1. Import Repository
- Go to [vercel.com](https://vercel.com)
- Click "Import Git Repository"
- Connect: `https://github.com/djtlb/contentflow`
- Deploy automatically

### 2. Add Environment Variables
Add these in Vercel Dashboard → Settings → Environment Variables:

```env
# Supabase (get from supabase.com dashboard)
VITE_SUPABASE_URL=https://krrawqhjcpqjtsgnexzj.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key

# Stripe (get from stripe.com dashboard)
STRIPE_SECRET_KEY=sk_live_your_secret_key
VITE_STRIPE_PUBLISHABLE_KEY=pk_live_your_publishable_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

# OpenAI (get from platform.openai.com)
OPENAI_API_KEY=your_openai_key

# Configuration
NODE_ENV=production
ADMIN_EMAIL=sallykamari61@gmail.com
STRIPE_TAX_ENABLED=true
```

### 3. Configure External Services

#### **Supabase Setup:**
1. Create project at supabase.com
2. Run SQL from `database/schema.sql`
3. Run SQL from `database/promotions_schema.sql`
4. Copy URL and keys to Vercel

#### **Stripe Setup:**
1. Create account at stripe.com
2. Create products: "Starter $29/month" and "Pro $59/month"
3. Enable automatic tax calculation
4. Add webhook endpoint: `https://your-domain.com/api/webhook`
5. Copy keys to Vercel

#### **OpenAI Setup:**
1. Get API key at platform.openai.com
2. Add billing method ($20 minimum)
3. Copy key to Vercel

## 🎯 **Expected Results:**

### **Clean Deployment:**
- ✅ No CSS import errors
- ✅ No chunk size warnings
- ✅ No package manager conflicts
- ✅ Optimized build performance

### **Full Functionality:**
- ✅ Professional landing page
- ✅ User authentication
- ✅ AI content processing
- ✅ Stripe subscription billing
- ✅ Admin dashboard with analytics
- ✅ Promotional campaign system

## 💰 **Ready to Generate Revenue:**

Once deployed, your ContentFlow platform will:
- Process real payments through Stripe
- Generate AI content with OpenAI
- Track users and analytics in Supabase
- Handle global tax compliance
- Provide admin control panel

## 🚨 **Security Notes:**

- **Never commit API keys** to git repositories
- **Use environment variables** for all secrets
- **Monitor your dashboards** for unusual activity
- **Set up billing alerts** in Stripe and OpenAI

---

**Your deployment is now clean and ready! No more errors - just pure revenue generation! 🚀💰**
1 change: 1 addition & 0 deletions DEPLOYMENT_STATUS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Deployment Status: Wed Sep 17 23:08:39 EDT 2025
Loading