@remix-run/serve
Advanced tools
Comparing version 0.0.0-experimental-b697c4f3 to 0.0.0-experimental-b9cc66cb
@@ -1,1 +0,1 @@ | ||
export {}; | ||
import "./env"; |
16
cli.js
#!/usr/bin/env node | ||
/** | ||
* @remix-run/serve v0.0.0-experimental-b697c4f3 | ||
* @remix-run/serve v0.0.0-experimental-b9cc66cb | ||
* | ||
@@ -14,3 +14,5 @@ * Copyright (c) Remix Software Inc. | ||
require('./env'); | ||
var path = require('path'); | ||
var os = require('os'); | ||
var index = require('./index'); | ||
@@ -21,4 +23,4 @@ | ||
var path__default = /*#__PURE__*/_interopDefaultLegacy(path); | ||
var os__default = /*#__PURE__*/_interopDefaultLegacy(os); | ||
process.env.NODE_ENV = "production"; | ||
let port = process.env.PORT || 3000; | ||
@@ -35,3 +37,11 @@ let buildPathArg = process.argv[2]; | ||
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-b697c4f3 | ||
* @remix-run/serve v0.0.0-experimental-b9cc66cb | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/serve", | ||
"description": "Production application server for Remix", | ||
"version": "0.0.0-experimental-b697c4f3", | ||
"version": "0.0.0-experimental-b9cc66cb", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"dependencies": { | ||
"@remix-run/express": "0.0.0-experimental-b697c4f3", | ||
"@remix-run/express": "0.0.0-experimental-b9cc66cb", | ||
"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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5392
9
91
3
+ Added@remix-run/express@0.0.0-experimental-b9cc66cb(transitive)
+ Added@remix-run/node@0.0.0-experimental-b9cc66cb(transitive)
+ Added@remix-run/server-runtime@0.0.0-experimental-b9cc66cb(transitive)
- Removed@remix-run/express@0.0.0-experimental-b697c4f3(transitive)
- Removed@remix-run/node@0.0.0-experimental-b697c4f3(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-b697c4f31.0.6(transitive)