We have a NextJS page combined with a headless CMS.
Within this CMS I added an option for the admin to save arbitrary snippets to be injected either in the head or at