@remix-run/serve 0.0.0-experimental-9784dd06 → 0.0.0-experimental-708e229e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +1 -1
- package/env.js +1 -1
- package/index.js +2 -15
- package/package.json +2 -2
package/cli.js
CHANGED
package/env.js
CHANGED
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/serve v0.0.0-experimental-
|
|
2
|
+
* @remix-run/serve v0.0.0-experimental-708e229e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -27,20 +27,7 @@ function createApp(buildPath, mode = "production") {
|
|
|
27
27
|
let app = express__default["default"]();
|
|
28
28
|
app.disable("x-powered-by");
|
|
29
29
|
app.use(compression__default["default"]({
|
|
30
|
-
filter(
|
|
31
|
-
// No compression for html document requests to allow for streaming
|
|
32
|
-
if (req.headers["accept"] && req.headers["accept"].indexOf("text/html") !== -1) {
|
|
33
|
-
return false;
|
|
34
|
-
} // No compression for _data requests to allow for streaming
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (req.query._data) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
|
|
30
|
+
filter: express$1.createCompressionFilter()
|
|
44
31
|
}));
|
|
45
32
|
app.use("/build", express__default["default"].static("public/build", {
|
|
46
33
|
immutable: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/serve",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-708e229e",
|
|
4
4
|
"description": "Production application server for Remix",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/remix/issues"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"remix-serve": "cli.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@remix-run/express": "0.0.0-experimental-
|
|
18
|
+
"@remix-run/express": "0.0.0-experimental-708e229e",
|
|
19
19
|
"compression": "^1.7.4",
|
|
20
20
|
"express": "^4.17.1",
|
|
21
21
|
"morgan": "^1.10.0"
|