This project is split into two separate applications that are deployed independently to Vercel.
Architecture
- Marketing Site (
apps/marketing): The public-facing landing page.- Domain:
www.tendsocial.com(ortendsocial.com) - Tech: Vite + React + Tailwind CSS
- Domain:
- Dashboard App (
apps/frontend): The authenticated SaaS application.- Domain:
app.tendsocial.com - Tech: Vite + React + Tailwind CSS + Supabase Auth
- Domain:
Deployment Steps
1. Dashboard App (apps/frontend)
This is the main application. It must be deployed first or concurrently.
- Create New Project in Vercel.
- Import Repository: Select the
tendsocialrepo. - Project Name:
tendsocial-app(recommended). - Framework Preset:
Vite. - Root Directory:
apps/frontend(Important!). - Environment Variables:
VITE_API_URL: The URL of your backend (e.g.,https://tendsocial-backend-....run.app). Do not add/apiat the end.VITE_SUPABASE_URL: Your Supabase Project URL.VITE_SUPABASE_PUBLISHABLE_KEY: Your Supabase Anon Key.
- Deploy.
- Domain Configuration: Add
app.tendsocial.comto the project domains.
2. Marketing Site (apps/marketing)
This is the landing page that links to the app.
- Create New Project in Vercel.
- Import Repository: Select the
tendsocialrepo. - Project Name:
tendsocial-web(recommended). - Framework Preset:
Vite. - Root Directory:
apps/marketing(Important!). - Environment Variables: None required for the basic landing page.
- Deploy.
- Domain Configuration: Add
www.tendsocial.com(andtendsocial.com) to the project domains.
Post-Deployment Verification
- Go to
www.tendsocial.com. - Click Log In.
- Verify it redirects to
app.tendsocial.com. - Verify you see the Login Screen.
- Log in with Google/Microsoft.
- Verify you are redirected to the Dashboard.
- Click Logout.
- Verify you return to the Login Screen.
- Click Back to Home.
- Verify you return to
www.tendsocial.com.