Discourse broken after moving servers

I have a similar problem that seems to have started today or yesterday. My admin routes don’t work, and a menu is broken.

Uncaught (in promise) Error: There is no route named admin

I found this topic by searching to see if anyone else was encountering a problem with Cloudflare.

If I clear the Cloudflare cache or turn on development mode it goes away, but as soon as caching starts, the problem comes back.

Edit: I’m not sure if this is related, but these are some of the errors in the console when logged in as an admin.

Here’s the line of code:

class d extends t.default{static#e=dt7948.g(this.prototype,"currentUser",[a.service])#t=void dt7948.i(this,"currentUser")

My menu cuts off here:

The “no route named admin” error happens when I open that menu. It might be cutting off where the “admin” link would be.