@remix-run/serve
Advanced tools
Comparing version 0.0.0-experimental-149e932f to 0.0.0-experimental-2ca98589
14
cli.js
#!/usr/bin/env node | ||
/** | ||
* @remix-run/serve v0.0.0-experimental-149e932f | ||
* @remix-run/serve v0.0.0-experimental-2ca98589 | ||
* | ||
@@ -16,2 +16,3 @@ * Copyright (c) Remix Software Inc. | ||
var path = require('path'); | ||
var os = require('os'); | ||
var index = require('./index'); | ||
@@ -22,2 +23,3 @@ | ||
var path__default = /*#__PURE__*/_interopDefaultLegacy(path); | ||
var os__default = /*#__PURE__*/_interopDefaultLegacy(os); | ||
@@ -35,3 +37,11 @@ let port = process.env.PORT || 3000; | ||
index.createApp(buildPath).listen(port, () => { | ||
console.log(`Remix App Server started at http://localhost:${port}`); | ||
var _Object$values$flat$f; | ||
let address = (_Object$values$flat$f = Object.values(os__default["default"].networkInterfaces()).flat().find(ip => (ip === null || ip === void 0 ? void 0 : ip.family) == "IPv4" && !ip.internal)) === null || _Object$values$flat$f === void 0 ? void 0 : _Object$values$flat$f.address; | ||
if (!address) { | ||
throw new Error("Could not find an IPv4 address."); | ||
} | ||
console.log(`Remix App Server started at http://${address}:${port}`); | ||
}); |
/** | ||
* @remix-run/serve v0.0.0-experimental-149e932f | ||
* @remix-run/serve v0.0.0-experimental-2ca98589 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/serve", | ||
"description": "Production application server for Remix", | ||
"version": "0.0.0-experimental-149e932f", | ||
"version": "0.0.0-experimental-2ca98589", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"dependencies": { | ||
"@remix-run/express": "0.0.0-experimental-149e932f", | ||
"@remix-run/express": "0.0.0-experimental-2ca98589", | ||
"compression": "^1.7.4", | ||
@@ -21,0 +21,0 @@ "express": "^4.17.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5392
9
91
+ Added@remix-run/express@0.0.0-experimental-2ca98589(transitive)
+ Added@remix-run/node@0.0.0-experimental-2ca98589(transitive)
+ Added@remix-run/server-runtime@0.0.0-experimental-2ca98589(transitive)
- Removed@remix-run/express@0.0.0-experimental-149e932f(transitive)
- Removed@remix-run/node@0.0.0-experimental-149e932f(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-149e932f(transitive)