horizon: 5.9.5 is causing an issue with the dashboard when compiling assets for production

  • Horizon Version: 5.9.5
  • Laravel Version: 8.83.7
  • PHP Version: 8.1.3
  • Redis Driver & Version: predis/predis 1.1.10
  • Database Driver & Version: MySql 8

Description:

I have a feeling that the recent update to 5.9.5 is causing an issue with the dashboard when compiling assets for production (compiling for dev works fine).

When going to the Horizon dashboard I got a blank screen. I see the HTML, but no ajax requests are made so the dash doesn’t show any data.

I rolled back to 5.9.4 and it works just fine.

Steps To Reproduce:

Compile production assets: npm run prod Go to the Horizon dashboard page.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@taylorotwell thanks. This time around I’m puzzled why it’s not working in some setups. As I said, I tested this quite thoroughly, and the only problem I ran into was with an outdated (by my PR) layout in the views/vendor dir… So I haven’t got a clue why this isn’t working for some people.

Otoh: reverting this breaks Horizon for people like me with a strict CSP.

I don’t see a big issue here. I’ve never know much people to have a problem here. I think we should consider the majority of the Horizon users here rather than a few people who want a strict CSP. If there is a certain solution for your use case that 100% won’t break people’s setups we can maybe reconsider it.

@driesvints yes it worked. tested on Laravel 9