I have created a custom component using the React framework (Using Your React Components in Builder.io - Builder.io). The custom component itself works perfectly fine in the visual editor when I change the preview URL to either localhost:3000 (when nextjs is running locally) or a publicly accessible server (404: This page could not be foundbuilder_editing=true&builder.overrides.development=6ce08af50c774990a5fb1b9670454e70&builder.overrides.6ce08af50c774990a5fb1b9670454e70=6ce08af50c774990a5fb1b9670454e70).
If you access that amplifyapp URL you’ll see an image of some chairs with a little circle on the left. The content model is Development and the ID is 6ce08af50c774990a5fb1b9670454e70. If you open that in the visual editor you’ll see the Shoppable Image component works totally fine. You can add a new one, upload an image, and then add as many hotspots as you want (in the options of the component). This all works perfectly.
My question is related to the HTML API, IE (https://cdn.builder.io/api/v1/html/development/6ce08af50c774990a5fb1b9670454e70?apiKey={{apiKey}}).
It does not appear to be rendering the custom component. It completely skips it. Is there a place where i can “import” the component so the Builder HTML API renders it server side just like all the default components (Text, Image, Columns, etc). Without the ability to do this I don’t really see the value of custom components unless your entire website is a react app, which ours is not.
We would like to develop these custom components, use them just like the out-of-the-box Builder components, and have them render server side through the HTML API just like normal components.