0ec4a87c7c
* fix(file import): server port was broken when localhost was canonical url - use getServerOrigin() instead of directly calling process.env.CANONICAL_URL - where server is calling itself, use 127.0.0.1 instead of CANONICAL_URL. - where server is calling itself (i.e. 127.0.0.1, use the server's listening port and not default for protocol http/80, https/443 - tidy some areas where process.env was called directly; should use envHelper. * fix tests