Supabase pages

    One-Neighbourhood MLS Site in Supabase: Kitsilano Example

    Limit every page of a Supabase site to one area, using the board's own area name.

    Part of the Supabase MLS API Integration guide · Last reviewed 2026-11-20

    Supabase site showing only Kitsilano MLS listings

    To limit a Supabase-backed site to Kitsilano, add the area filter inside the mls-listings Edge Function. Kitsilano is a sub-area of Vancouver West in Greater Vancouver listings, held in MLSAreaMinor. The prompt reads the exact spelling from the feed first.

    Key takeaways

    • Find the exact area spelling in the feed first.
    • Put the filter in the server code, not in a page.
    • Kitsilano is a sub-area (MLSAreaMinor) of Vancouver West.
    • Write an area guide so the site is more than a search box.

    Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.

    The prompt

    Paste this into the same project after search works.

    One-neighbourhood prompt for a Supabase project
    Limit the whole site to one neighbourhood.
    
    - Add a setting SITE_AREAS = ["Kitsilano"] in one place.
    - In getListings, always add (MLSAreaMinor eq '<area>') for each area in SITE_AREAS, joined with or, to every request. Make the change in the mls-listings Edge Function, not in any page.
    - No page may call the feed without this filter. Remove the area filter from the search page, since the site covers one area.
    - Add an area guide page at /kitsilano with sections I will write: [streets and building types], [schools and parks], [what buyers ask]. Link it from the home page and every listing page.
    
    Before you change the filter, call the feed once for active listings with MLSAreaMajor eq 'Vancouver West', list the distinct MLSAreaMinor values, and show me the exact spelling used for Kitsilano.

    Where the filter lives in Supabase

    • Keep SITE_AREAS as a secret or in the function code, never in a public table visitors can change.
    • Apply it in every function that calls the feed.

    Checking the area

    Search for a price range wide enough to return every listing and check the area of each result. Then open a listing you know is outside the area, by its address, and confirm the site does not show it. The method for finding the board's exact area name is on Show MLS Listings From One Neighbourhood Only.

    Frequently asked questions

    Can SITE_AREAS be a secret?

    It is not sensitive, but storing it next to the key keeps the function's settings in one place.

    Related pages in this guide

    Sources

    Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849