Yesterday I merged #909 as an (ugly) temporary solution to a very tricky error.
How to reproduce the error:
- Use
prod and debug=0 in .env
- Comment the
DATABASE_URL config to trigger a 500 error
- The 500 error page sometimes is styled with CSS and sometimes isn't:
- The 500 error for this page shows styles:
/en/blog/posts/lorem-ipsum-dolor-sit-amet-consectetur-adipiscing-elit
- The 500 error for this page doesn't:
/en/blog/
Can anyone spot the reason and provide a pull request to fix it? Thanks!