Visual Editor iFrame redirect

Hey gang! Hopefully a quick question.

I created a new repo with stackbit/visual editor, Next.js, and the stackbit/contentful dependencies. I have my contentful data loading into the Visual Editor, but I was wondering if it’s possible to redirect the Visual Editor Preview iFrame to a separately hosted site/server that is delivering the HTML, PHP, JS and all the code and still be able to make Contentful changes through the preview? I dont want to have to basically rebuild my entire other code/repo in the stackbit repo since its a ton of code. Or does Visual Editor have to rely on locally sourced code from the same repo, so to speak?

I don’t believe that’s possible.