Ghost
Ghost copied to clipboard
Use of express deprecated req.host
Issue Summary
After upgrading to v5, getting this error logs
express deprecated req.host: Use req.hostname instead at versions/5.94.2/node_modules/@tryghost/mw-vhost/lib/vhost.js:83:13
Steps to Reproduce
- Changed docker image from
ghost:4.48.9toghost:5.94.2-alpine - Deployed it, all things were working good
- Checked docker logs, getting error logs pasted above
- This error is started after upgrading to v5
Ghost Version
5.94.2
Node.js Version
18
How did you install Ghost?
Using docker image 'ghost:5.94.2-alpine'
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct
- [X] I agree to be friendly and polite to people in this repository
As far as I am aware that's a deprecation warning, not an error. A PR to resolve it would be welcome though!
Our bot has automatically marked this issue as stale because there has not been any activity here in some time.
The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR.
We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂