Incorporate improvements to getEndpoint...
And remove unused dependencies in package.json
MODIFY
voting-app/index.ts
voting-app/index.ts
@@ -36,5 +36,4 @@ let frontend = new cloud.Service("voting-app-frontend", {
},
});
-frontend.getEndpoint().then(e => e.hostname).then(hostname => console.log(`URL: ${hostname}`));
-frontend.getEndpoint().then(e => e.port).then(port => console.log(`PORT: ${port}`));
+frontend.getEndpoint().then(e => console.log(`http://${e.hostname}:${e.port}`));

MODIFY
voting-app/package.json
voting-app/package.json
},
"peerDependencies": {
"@pulumi/cloud": "*"
- },
- "dependencies": {
- "@types/node-fetch": "^1.6.7",
- "node-fetch": "^1.7.3",
- "redis": "^2.8.0"
}
}

Incorporate improvements to getEndpoint...

And remove unused dependencies in package.json