Skip to content

Complete migration from Vercel to Supabase deployment#9

Draft
codegen-sh[bot] wants to merge 2 commits into
masterfrom
migrate/supabase-deployment
Draft

Complete migration from Vercel to Supabase deployment#9
codegen-sh[bot] wants to merge 2 commits into
masterfrom
migrate/supabase-deployment

Conversation

@codegen-sh

@codegen-sh codegen-sh Bot commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR completes the migration from Vercel to Supabase deployment, addressing the Vercel function limits and build errors while preserving all Figma UI components.

Key Changes

  • Supabase Edge Functions: Created comprehensive serverless functions for auth, DNS management, and projects
  • DNS Management System: Complete domain and record management with validation
  • Frontend Integration: Updated to use Supabase client and API endpoints
  • Build Fixes: Resolved Rollup import errors and NODE_ENV configuration issues
  • Figma Components: Preserved all 53 UI components with proper versioned imports
  • Production Ready: Added environment configuration and deployment scripts

Technical Details

  • Migrated from Vercel serverless functions to Supabase Edge Functions
  • Added comprehensive DNS management with domain validation
  • Updated React routing to include new DNS management page
  • Fixed import resolution for Radix UI components using Vite aliases
  • Resolved Lucide React import conflicts
  • Added production environment configuration

Test Plan

  • Build completes successfully without errors
  • All Figma UI components preserved and functional
  • Supabase Edge Functions created and configured
  • Frontend routing updated with new pages
  • Environment variables properly configured
  • Deploy to Supabase and test full functionality
  • Verify DNS management system works end-to-end
  • Test authentication flow with Supabase

🤖 Generated with Claude Code


Summary by cubic

Completed migration from Vercel to Supabase, moving all serverless APIs to Supabase Edge Functions and updating the frontend to use Supabase. This removes Vercel function limits, fixes build issues, and introduces a DNS management UI.

  • New Features

    • Supabase Edge Functions for auth, DNS (domains, records, validation), and projects (list/get/create/update/delete, deployments).
    • DNS Management page with domain status and records; added route /dns-management.
    • Supabase client integration with new API base; production env variables added.
    • All Figma UI components preserved with versioned imports.
  • Migration

    • Added deploy-supabase.sh and supabase.json with function routing.
    • Replaced legacy /api calls with Supabase Functions endpoints.
    • Fixed build issues (Radix/Lucide imports, NODE_ENV).

- Create Supabase Edge Functions for auth, DNS, and projects APIs
- Add comprehensive DNS management system with domain validation
- Update frontend to use Supabase client and API endpoints
- Add production environment configuration for Supabase
- Fix build errors including Lucide React imports and NODE_ENV
- Preserve all 53 Figma UI components with proper versioned imports
- Add deployment script for Supabase functions
- Resolve Vercel function limits by migrating to Supabase Edge Functions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 11, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nexus Ready Ready Preview Comment Oct 12, 2025 4:55pm

@coderabbitai

coderabbitai Bot commented Oct 11, 2025

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

## Database Schema & Integration
- Created comprehensive database schema with 7 tables
- Implemented Row Level Security (RLS) for all tables
- Added proper indexes, constraints, and relationships
- Set up automatic triggers for timestamps and profile creation

## Tables Created
- `profiles`: Extended user profile data
- `projects`: User projects and applications
- `domains`: Domain ownership and verification
- `dns_records`: DNS record management
- `api_keys`: API access management
- `audit_logs`: Change tracking and security
- `usage_stats`: Analytics and metrics

## Edge Functions Updated
- **DNS Function**: Now uses real database for domain/DNS management
- **Auth Function**: Enhanced with profile data fetching
- **Projects Function**: Complete CRUD operations with database
- All functions include proper authentication and user filtering

## Sample Data & Testing
- Populated database with realistic test data
- Created test user with sample domains, projects, DNS records
- Added database integration test script
- Verified RLS policies and data isolation

## Security & Performance
- Row Level Security enabled on all user tables
- User-scoped data access with proper filtering
- Optimized queries with indexes
- Foreign key relationships for data integrity

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant