Deploy - Cannot use import statement outside a module

No I don’t believe this is related, although I can see prerender failing there on index. I think its probably a module that relies on document that doesn’t have the isBrowser check.

Anyway… I’m going to not distract any more here, as I don’t really have anything to help solve your main problem!