Skip to content

Commit

Permalink
Log both host and port (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjon authored Jul 11, 2021
1 parent 06e1c25 commit 0db0889
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-sloths-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

log both host and port
4 changes: 2 additions & 2 deletions packages/adapter-node/src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createServer } from './server';
// TODO hardcoding the relative location makes this brittle
import { init, render } from '../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { host, port } from './env.js'; // eslint-disable-line import/no-unresolved
import { createServer } from './server';

init();

const instance = createServer({ render }).listen(port, host, () => {
console.log(`Listening on port ${port}`);
console.log(`Listening on ${host}:${port}`);
});

export { instance };

0 comments on commit 0db0889

Please sign in to comment.