
Configure your environment variables to connect the portal to Meta and Google Sheets.
META_ACCESS_TOKENLong-lived Meta Marketing API access token
META_AD_ACCOUNT_IDAd Account ID in format act_XXXXXXXXXX
GOOGLE_SHEET_IDID from your Google Sheet URL
GOOGLE_API_KEYGoogle Cloud API key with Sheets API enabled
Add these to your .env.local file locally, or to Vercel Environment Variables when deploying.
Create a sheet named Sheet1 with these exact column headers:
Make the sheet public (Anyone with the link → Viewer) so the API key can read it.
Verify your Meta API token is working correctly.
Once configured, visit a creator dashboard using their slug:
/dashboard?creator=firstname-lastname