← Tasks
Rebrand: Update Supabase env vars + dashboard references (retry 1) (retry 2)
cancelledcode_genP0
Description
Update NEXT_PUBLIC_* env vars, Vercel project settings, and foundry-dashboard references from dutypay to c8.
Assignee
-
Claimed By
Cloud Lu → Claude Sonnet
Created
11h ago
Completed
11h ago
Quality
Overall
37%
Pass
FAIL
Graded By
-
Graded At
-
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{
"cost": {
"input_tokens": 62,
"estimated_usd": 0.023361,
"output_tokens": 1545
},
"model": "claude-sonnet-4-20250514",
"status": "success",
"transport": "anthropic_api",
"latency_ms": 25297,
"response_text": "I'll help you rebrand from \"dutypay\" to \"c8\" by updating environment variables, Vercel project settings, and dashboard references. Here's a comprehensive approach:\n\n## 1. Environment Variables Update\n\n### `.env.local` and `.env.example`\n```bash\n# Update all NEXT_PUBLIC_* environment variables\n# From:\nNEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key\nNEXT_PUBLIC_APP_NAME=dutypay\nNEXT_PUBLIC_APP_URL=https://dutypay.vercel.app\n\n# To:\nNEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key\nNEXT_PUBLIC_APP_NAME=c8\nNEXT_PUBLIC_APP_URL=https://c8.vercel.app\n```\n\n### Update any configuration files referencing the old name:\n```javascript\n// next.config.js or similar\nmodule.exports = {\n env: {\n CUSTOM_KEY: 'c8-value',\n // Update any hardcoded references\n },\n}\n```\n\n## 2. Vercel Project Settings Update\n\n### Via Vercel CLI:\n```bash\n# Install Vercel CLI if not already installed\nnpm i -g vercel\n\n# Login to Vercel\nvercel login\n\n# Link to your project\nvercel link\n\n# Update environment variables\nvercel env add NEXT_PUBLIC_APP_NAME\n# Enter: c8\n\nvercel env add NEXT_PUBLIC_APP_URL \n# Enter: https://c8.vercel.app\n\n# Remove old environment variables if they exist\nvercel env rm NEXT_PUBLIC_APP_NAME\nvercel env rm NEXT_PUBLIC_APP_URL\n\n# Redeploy with new settings\nvercel --prod\n```\n\n### Via Vercel Dashboard:\n1. Go to your Vercel project dashboard\n2. Navigate to Settings → Environment Variables\n3. Update or add these variables:\n - `NEXT_PUBLIC_APP_NAME` → `c8`\n - `NEXT_PUBLIC_APP_URL` → `https://c8.vercel.app`\n4. Delete old \"dutypay\" references\n\n## 3. Code References Update\n\n### Search and replace in your codebase:\n```bash\n# Find all references to dutypay\ngrep -r \"dutypay\" . --exclude-dir=node_modules --exclude-dir=.git\n\n# Find all references to foundry-dashboard\ngrep -r \"foundry-dashboard\" . --exclude-dir=node_modules --exclude-dir=.git\n```\n\n### Update package.json:\n```json\n{\n \"name\": \"c8\",\n \"description\": \"C8 Dashboard\",\n \"homepage\": \"https://c8.vercel.app\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/yourusername/c8.git\"\n }\n}\n```\n\n### Update common file references:\n\n**README.md:**\n```markdown\n# C8 Dashboard\n\n## Deployment\nDeploy to Vercel: https://c8.vercel.app\n```\n\n**Components/Layout files:**\n```javascript\n// Update any hardcoded references\nconst appName = process.env.NEXT_PUBLIC_APP_NAME || 'C8';\nconst appUrl = process.env.NEXT_PUBLIC_APP_URL || 'https://c8.vercel.app';\n```\n\n**Meta tags and SEO:**\n```jsx\n<Head>\n <title>C8 Dashboard</title>\n <meta property=\"og:title\" content=\"C8 Dashboard\" />\n <meta property=\"og:url\" content=\"https://c8.vercel.app\" />\n</Head>\n```\n\n## 4. Supabase Configuration Update\n\nIf you have Supabase configurations that reference the old name:\n\n```sql\n-- Update any database policies or RLS that might reference the old name\n-- Check your Supabase dashboard for any hardcoded references\n```\n\n## 5. File Structure Updates\n\n```bash\n# Rename any directories or files with dutypay/foundry-dashboard references\nmv dutypay-config.js c8-config.js\nmv components/DutyPayDashboard components/C8Dashboard\n```\n\n## 6. Git and Repository Updates\n\n```bash\n# Update git remote if repository name changed\ngit remote set-url origin https://github.com/yourusername/c8.git\n\n# Commit all changes\ngit add .\ngit commit -m \"Rebrand from dutypay to c8: Update env vars, references, and dashboard naming\"\ngit push origin main\n```\n\n## 7. Verification Checklist\n\nAfter making these changes, verify:\n\n- [ ] All environment variables updated in `.env.local`\n- [ ] Vercel project settings reflect new naming\n- [ ] No remaining \"dutypay\" or \"foundry-dashboard\" references in code\n- [ ] Package.json updated\n- [ ] README and documentation updated\n- [ ] Meta tags and SEO references updated\n- [ ] Supabase integration still working\n- [ ] Application builds and deploys successfully\n- [ ] All functionality working with new branding\n\n## 8. Quick Script for Bulk Replacement\n\n```bash\n#!/bin/bash\n# bulk-replace.sh\n\n# Replace dutypay with c8\nfind . -type f -name \"*.js\" -o -name \"*.jsx\" -o -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.json\" -o -name \"*.md\" | \\\n grep -v node_modules | \\\n grep -v .git | \\\n xargs sed -i 's/dutypay/c8/g'\n\n# Replace foundry-dashboard with c8-dashboard \nfind . -type f -name \"*.js\" -o -name \"*.jsx\" -o -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.json\" -o -name \"*.md\" | \\\n grep -v node_modules | \\\n grep -v .git | \\\n xargs sed -i 's/foundry-dashboard/c8-dashboard/g'\n\necho \"Bulk replacement complete. Please review changes before committing.\"\n```\n\nRun this script carefully and review all changes before committing to ensure nothing important was accidentally modified."
}Task ID: 21d90cba-1a47-4aaf-8ed2-9be7fe10eccd