It's not a great solution, but here's an initial solution for defining the server in all linked files.
Remove the port from non-development deployments.