How Does Data Sync Work?
Your site pulls data from multiple sources and keeps them in sync automatically.
Data sources
- Red Bricks Data API — Pre-construction project listings, floorplans, pricing
- Repliers TRREB API — MLS resale and rental listings (if enabled)
- Supabase — CRM data, favorites, blog posts, portfolio units
How pre-construction data syncs
The Red Bricks API is queried in real time when visitors load pages. Responses are cached using Next.js ISR (Incremental Static Regeneration):
- Home page data: revalidates every 30 minutes
- Project detail pages: revalidate every hour
- Floorplan pages: revalidate every 2 hours
- Category pages: revalidate every hour
This means your site serves fast cached pages while periodically refreshing data in the background.
How MLS data syncs
MLS data follows a different pattern — it syncs via a daily cron job:
- The cron job fetches new and updated listings from the Repliers API
- Data is upserted into your Supabase database
- Building matching runs to link MLS buildings to pre-construction projects
- Your site reads MLS data from Supabase, not directly from the API
CRM and user data
CRM data (contacts, pipeline, tasks) is stored in Supabase and updates in real time. When you add a contact or move a deal, the change is reflected instantly across all connected browsers.
Was this article helpful?
Related Articles
Enabling MLS on Your Site
How to activate the MLS/IDX feature toggle and connect resale data.
MLS/IDX Integration
MLS Data Sync and Freshness
How the cron sync works and how often MLS data is updated.
MLS/IDX Integration
What is Red Bricks OS?
An overview of the Red Bricks OS platform, what it does, and who it is built for.
Getting Started