Is there a way to check if a page is loading in the admin vs the front end? I have code that I need to run only on the front end.
I would recommend looking at this package, and associated blog posts.
https://github.com/wiredviews/xperience-page-builder-utilities
Then you can either use the dependency injected IPageBuilderContext or the tag helper <page-data-context>.
IPageBuilderContext
<page-data-context>
Please, sign in to be able to submit a new answer.