I have a hunch on this.
We never correctly
hoisted
code blocks
and this incorrect hoisting, though not impacting the client that uses ember initializers to initialize dialects, did heavily impact the server that uses a different paradigm.
I fixed hoisting and unhoisting… but our architecture needs some TLC here, we need to split off the rendering engine into a cleaner, independent, multisite friendly piece.
https://github.com/discourse/discourse/commit/568adc49c09c4964ef3168dfd1fa12c2fb05203b