Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 53dbafd

Browse files
committed
fix(@nguniversal/common): correctly construct host string
Partially addresses #2108 (cherry picked from commit ecf9db1)
1 parent 32d66e1 commit 53dbafd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/common/clover/server/src/server-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class Engine {
113113
}
114114

115115
const content = dom.serialize();
116-
if (!options.inlineCriticalCss) {
116+
if (!inlineCriticalCss) {
117117
return content;
118118
}
119119

modules/common/schematics/ng-add/files/src/server.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { join } from 'path';
44
import { format } from 'url';
55

66
const PORT = 4200;
7-
const HOST = `http://localhost:${PORT}`;
7+
const HOST = `localhost:${PORT}`;
88
const DIST = join(__dirname, '../browser');
99

1010
const app = express();
@@ -37,5 +37,5 @@ app.get('*', (req, res, next) => {
3737
});
3838

3939
app.listen(PORT, () => {
40-
console.log(`Node Express server listening on ${HOST}`);
40+
console.log(`Node Express server listening on http://${HOST}`);
4141
});

0 commit comments

Comments
 (0)