Skip to content

Commit

Permalink
fix: make local dev work again
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 1, 2022
1 parent 454338d commit 8657da7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js",
"env": {
"NODE_ENV": "development"
}
}
]
}
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ if (process.env.NODE_ENV !== 'test') {
cert: fs.readFileSync('./localhost.pem'),
}
app = https.createServer(credentials, app);
} else {
app.listen(port, () => {
console.log(`printproxy listing on port ${port}`);
});
}

app.listen(port, () => {
console.log(`printproxy listing on port ${port}`);
});
}

export default app;

0 comments on commit 8657da7

Please sign in to comment.