Local HubL context data



As a feature request, is it possible to export from a production site its data in the JSON format used by the HubL local server as a context?
This will ease local development of HubSpot sites.

Thank you


@yguedidi Did you ever find a solution for this? We're running into the same issue where we are unable to use a local development environment because there is no way to supply mock data to modules.


There is no automated way to export data, but you can use the api to get page data for the pages you would like to test locally. See https://developers.hubspot.com/docs/methods/pages/get_pages_page_id

Working locally with HUBL Server