createHostingEnvironment function
Implementation
HostEnvironment createHostingEnvironment(Configuration hostConfiguration) {
var hostingEnvironment = HostingEnvironment()
..applicationName =
hostConfiguration[HostDefaults.applicationKey] ?? 'application'
..environmentName = hostConfiguration[HostDefaults.environmentKey] ??
Environments.production
..contentRootPath = resolveContentRootPath(
hostConfiguration[HostDefaults.contentRootKey],
p.current,
);
return hostingEnvironment;
}