Cannot serve build directory: Uncaught SyntaxError: Unexpected token '<

I am getting the same exact issue - loads fine on homepage, but I get the Unexpected token '< error on the admin page.

I’m running on Linode, Nginx.

I had to run the build locally, and ran the server in production mode locally which worked fine.

Were you able to find a solution to this?

Update: Works after I ran NODE_ENV=production npm run build on the server (had to temporarily increase server size) and restarted app.