FOUNDRY
C8 Platform
← Tasks

Rebrand: Update Supabase env vars + dashboard references

cancelledcode_genP2weekend-jack-poc

Description

Update NEXT_PUBLIC_* env vars, Vercel project settings, and foundry-dashboard references from dutypay to c8.
Assignee
AG Lu
Claimed By
Cloud Lu → Claude Sonnet
Created
13h ago
Completed
11h ago

Quality

Overall
35%
Pass
FAIL
Graded By
-
Graded At
-

Cost

Input Tokens
-
Output Tokens
-
Est. USD
-

Result

{
  "cost": {
    "input_tokens": 52,
    "estimated_usd": 0.027561,
    "output_tokens": 1827
  },
  "model": "claude-sonnet-4-20250514",
  "status": "success",
  "transport": "anthropic_api",
  "latency_ms": 23600,
  "response_text": "I'll help you rebrand from dutypay to c8. Here's a comprehensive guide to update all the necessary components:\n\n## 1. Environment Variables (.env files)\n\nUpdate your `.env.local`, `.env.production`, and any other environment files:\n\n```bash\n# Before\nNEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key\nNEXT_PUBLIC_DUTYPAY_API_URL=https://api.dutypay.com\nNEXT_PUBLIC_DUTYPAY_APP_URL=https://app.dutypay.com\n\n# After\nNEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co\nNEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key\nNEXT_PUBLIC_C8_API_URL=https://api.c8.com\nNEXT_PUBLIC_C8_APP_URL=https://app.c8.com\n```\n\n## 2. Vercel Project Settings\n\n### Via Vercel Dashboard:\n1. Go to your Vercel dashboard\n2. Select your project\n3. Navigate to **Settings** → **Environment Variables**\n4. Update all `NEXT_PUBLIC_DUTYPAY_*` variables to `NEXT_PUBLIC_C8_*`\n5. Update any domain references in the values\n\n### Via Vercel CLI:\n```bash\n# Remove old environment variables\nvercel env rm NEXT_PUBLIC_DUTYPAY_API_URL\nvercel env rm NEXT_PUBLIC_DUTYPAY_APP_URL\n\n# Add new environment variables\nvercel env add NEXT_PUBLIC_C8_API_URL\nvercel env add NEXT_PUBLIC_C8_APP_URL\n```\n\n## 3. Code References Update\n\n### Update import statements and references:\n```typescript\n// Before\nimport { dutypayConfig } from '@/config/dutypay'\nconst API_URL = process.env.NEXT_PUBLIC_DUTYPAY_API_URL\n\n// After\nimport { c8Config } from '@/config/c8'\nconst API_URL = process.env.NEXT_PUBLIC_C8_API_URL\n```\n\n### Update configuration files:\n```typescript\n// config/c8.ts (renamed from dutypay.ts)\nexport const c8Config = {\n  apiUrl: process.env.NEXT_PUBLIC_C8_API_URL,\n  appUrl: process.env.NEXT_PUBLIC_C8_APP_URL,\n  // ... other config\n}\n```\n\n## 4. File and Directory Renames\n\n```bash\n# Rename configuration files\nmv config/dutypay.ts config/c8.ts\nmv lib/dutypay lib/c8\nmv components/dutypay components/c8\n\n# Update foundry-dashboard references\nfind . -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.js\" -o -name \"*.jsx\" | xargs sed -i 's/foundry-dashboard/c8-dashboard/g'\nfind . -name \"*.json\" | xargs sed -i 's/foundry-dashboard/c8-dashboard/g'\n```\n\n## 5. Package.json Updates\n\n```json\n{\n  \"name\": \"c8-dashboard\",\n  \"description\": \"C8 Dashboard Application\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/your-org/c8-dashboard.git\"\n  },\n  \"homepage\": \"https://c8.com\"\n}\n```\n\n## 6. Update Component References\n\nSearch and replace across your codebase:\n\n```bash\n# Find and replace dutypay references\ngrep -r \"dutypay\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.js\" --include=\"*.jsx\" .\nsed -i 's/dutypay/c8/g' **/*.{ts,tsx,js,jsx}\n\n# Find and replace foundry-dashboard references\ngrep -r \"foundry-dashboard\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.js\" --include=\"*.jsx\" .\nsed -i 's/foundry-dashboard/c8-dashboard/g' **/*.{ts,tsx,js,jsx}\n```\n\n## 7. Update Constants and Types\n\n```typescript\n// constants/index.ts\n// Before\nexport const DUTYPAY_ROUTES = {\n  dashboard: '/dashboard',\n  settings: '/settings'\n}\n\n// After\nexport const C8_ROUTES = {\n  dashboard: '/dashboard',\n  settings: '/settings'\n}\n\n// types/index.ts\n// Before\nexport interface DutyPayUser {\n  id: string;\n  email: string;\n}\n\n// After\nexport interface C8User {\n  id: string;\n  email: string;\n}\n```\n\n## 8. Update API Routes\n\n```typescript\n// pages/api or app/api routes\n// Before\nexport default async function handler(req: NextApiRequest, res: NextApiResponse) {\n  // dutypay logic\n}\n\n// After\nexport default async function handler(req: NextApiRequest, res: NextApiResponse) {\n  // c8 logic\n}\n```\n\n## 9. Update Documentation and Comments\n\n```bash\n# Update README.md\nsed -i 's/DutyPay/C8/g' README.md\nsed -i 's/dutypay/c8/g' README.md\nsed -i 's/foundry-dashboard/c8-dashboard/g' README.md\n\n# Update other documentation\nfind . -name \"*.md\" | xargs sed -i 's/DutyPay/C8/g'\nfind . -name \"*.md\" | xargs sed -i 's/dutypay/c8/g'\n```\n\n## 10. Supabase Project Settings (if needed)\n\nIf you need to update Supabase project settings:\n\n1. Go to Supabase dashboard\n2. Navigate to **Settings** → **General**\n3. Update project name if needed\n4. Update any custom domain settings\n5. Review and update RLS policies that might reference old naming\n\n## 11. Update Deployment Configuration\n\n```yaml\n# .github/workflows/deploy.yml\nname: Deploy C8 Dashboard\nenv:\n  NEXT_PUBLIC_C8_API_URL: ${{ secrets.NEXT_PUBLIC_C8_API_URL }}\n  NEXT_PUBLIC_C8_APP_URL: ${{ secrets.NEXT_PUBLIC_C8_APP_URL }}\n```\n\n## 12. Final Verification Steps\n\n1. **Search for remaining references:**\n   ```bash\n   grep -r -i \"dutypay\" . --exclude-dir=node_modules --exclude-dir=.git\n   grep -r -i \"foundry-dashboard\" . --exclude-dir=node_modules --exclude-dir=.git\n   ```\n\n2. **Test environment variables:**\n   ```typescript\n   console.log('C8 API URL:', process.env.NEXT_PUBLIC_C8_API_URL)\n   console.log('C8 App URL:', process.env.NEXT_PUBLIC_C8_APP_URL)\n   ```\n\n3. **Update Vercel project name (optional):**\n   - In Vercel dashboard → Settings → General → Project Name\n\n4. **Redeploy:**\n   ```bash\n   vercel --prod\n   ```\n\nThis comprehensive rebranding should update all references from dutypay to c8 and foundry-dashboard to c8-dashboard across your entire application. Make sure to test thoroughly after implementing these changes."
}
Task ID: cdbef049-428b-40ee-be2b-20b0ca51b02f