@remix-run/serve
Advanced tools
Comparing version 0.0.0-experimental-ab9dac4f to 0.0.0-experimental-b33ac4ef
@@ -1,1 +0,1 @@ | ||
export {}; | ||
import "./env"; |
18
cli.js
@@ -1,4 +0,4 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env node | ||
/** | ||
* @remix-run/serve v0.0.0-experimental-ab9dac4f | ||
* @remix-run/serve v0.0.0-experimental-b33ac4ef | ||
* | ||
@@ -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-ab9dac4f | ||
* @remix-run/serve v0.0.0-experimental-b33ac4ef | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/serve", | ||
"description": "Production application server for Remix", | ||
"version": "0.0.0-experimental-ab9dac4f", | ||
"version": "0.0.0-experimental-b33ac4ef", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"dependencies": { | ||
"@remix-run/express": "0.0.0-experimental-ab9dac4f", | ||
"@remix-run/express": "0.0.0-experimental-b33ac4ef", | ||
"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-b33ac4ef(transitive)
+ Added@remix-run/node@0.0.0-experimental-b33ac4ef(transitive)
+ Added@remix-run/server-runtime@0.0.0-experimental-b33ac4ef(transitive)
+ Added@types/busboy@0.3.5(transitive)
+ Added@web-std/blob@3.0.5(transitive)
+ Added@web-std/file@3.0.3(transitive)
+ Added@web-std/stream@1.0.0(transitive)
+ Added@zxing/text-encoding@0.9.0(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedblob@0.0.4(transitive)
+ Addedblob-stream@0.1.3(transitive)
+ Addedbusboy@0.3.1(transitive)
+ Addeddicer@0.3.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedstreamsearch@0.1.2(transitive)
+ Addedutil@0.12.5(transitive)
+ Addedweb-encoding@1.1.5(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
+ Addedwhich-typed-array@1.1.16(transitive)
- Removed@remix-run/express@0.0.0-experimental-ab9dac4f(transitive)
- Removed@remix-run/node@0.0.0-experimental-ab9dac4f(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-ab9dac4f(transitive)