Skip to content

Commit

Permalink
fix(@nguniversal/common): correctly construct host string
Browse files Browse the repository at this point in the history
Partially addresses #2108
  • Loading branch information
alan-agius4 committed May 20, 2021
1 parent 635d61e commit ecf9db1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/common/clover/server/src/server-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Engine {
}

const content = dom.serialize();
if (!options.inlineCriticalCss) {
if (!inlineCriticalCss) {
return content;
}

Expand Down
4 changes: 2 additions & 2 deletions modules/common/schematics/ng-add/files/src/server.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join } from 'path';
import { format } from 'url';

const PORT = 4200;
const HOST = `http://localhost:${PORT}`;
const HOST = `localhost:${PORT}`;
const DIST = join(__dirname, '../browser');

const app = express();
Expand Down Expand Up @@ -37,5 +37,5 @@ app.get('*', (req, res, next) => {
});

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

0 comments on commit ecf9db1

Please sign in to comment.