SSR and i18n files - Intermittent failures

11 views
Skip to first unread message

Adam Doan

unread,
May 25, 2026, 3:07:04 PM (3 days ago) May 25
to dspac...@googlegroups.com
Hi everyone, 

I have a DSpace 8.3 codebase that we’ve recently upgraded from DSpace 7. Everything seems to work well, with the exception of one intermittent issue that seems to be related to SSR and the inability to load the i18n translation files. 

The site will work fine for a while, but if you click around enough, eventually the UI requests for the en.[hash].json requests will start failing, and all of the translation keys will show up (not just a few). At the same time, I can see that the UI also requests en.json (without the hash), which I assume is a fallback behaviour when it can’t find the cache-busting hash file. That file also returns a 404, and then the translation keys display. 

Additional details:
  • The site is built with yarn build: prod
  •  The site is served by PM2 in cluster mode
  • The site is proxied by Envoy proxy 

I did some searching and found some similar issues, but none of them had the intermittent nature of what I’m describing: 

I was able to come up with a workaround for this, but it is definitely a band-aid that takes advantage of that fallback behaviour. I have a script that I use to build and deploy the site. Once the yarn build: prod command finishes, I added some code that copies the en.[hash].json file to en.json so that the file is present for that fallback behaviour. It does seem to resolve the issue but I don’t really like the idea of relying on that long term.

Anyone else run into this or something similar or have any insights into what is going on? Thanks!
-Adam
---
Adam Doan (He/Him)
Systems Developer, Digital Strategy & Technology
McLaughlin Library
50 Stone Road East
Guelph, Ontario, Canada N1G 2W1
A red and yellow line

AI-generated content may be incorrect.
The information in this message is intended solely for the addressee(s). If you are not the designated recipient, please notify the sender immediately, and permanently delete the original and any copies. Any use of the message by those other than the intended recipients is prohibited.
Reply all
Reply to author
Forward
0 new messages