Guidance on server-side custom code

I see that there is a server section in the custom code editor, I am assuming that this is running on builder.io’s host. I believe there is an opportunity here to add another layer: a “local-server” section, being able to fetch data from on-prem API server side would be pretty valuable.

@rdonn not sure if this helps, but I’ve noticed that within the SDK’s own code, anything that’s intended to be executed during your own server’s SSR phase is usually wrapped within a if (!Builder.isBrowser) block.

Thanks for that feedback! And yes, anything wrapped in Builder.isServer will run on Builder’s servers.