Skip to content

Inject _document into DukeSpace theme root component for SSR

rfb11 requested to merge hotfix-document-reference into main

This should hopefully fix the production-mode SSR error:

{"message":"ERROR ReferenceError: document is not defined at Object.next (/app/dist/server/main.js:1:10046661) at ConsumerObserver2.next (/app/dist/server/main.js:1:6072144) at SafeSubscriber2.Subscriber2._next (/app/dist/server/main.js:1:6071441) at SafeSubscriber2.Subscriber2.next (/app/dist/server/main.js:1:6070878) at /app/dist/server/main.js:1:6088076 at OperatorSubscriber2._this._next (/app/dist/server/main.js:1:6120316) at OperatorSubscriber2.Subscriber2.next (/app/dist/server/main.js:1:6070878) at /app/dist/server/main.js:1:6200042 at OperatorSubscriber2._this._next (/app/dist/server/main.js:1:6120316) at OperatorSubscriber2.Subscriber2.next (/app/dist/server/main.js:1:6070878)","timestamp":"2024-01-08T14:23:41.470Z","type":"err","process_id":0,"app_name":"dspace-ui"}

Merge request reports

Loading