@react-router/serve 0.0.0-experimental-667adc806 → 0.0.0-experimental-6129054f2

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/CHANGELOG.md CHANGED
@@ -1,23 +1,5 @@
1
1
  # `@react-router/serve`
2
2
 
3
- ## 7.9.2-pre.1
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies:
8
- - `react-router@7.9.2-pre.1`
9
- - `@react-router/node@7.9.2-pre.1`
10
- - `@react-router/express@7.9.2-pre.1`
11
-
12
- ## 7.9.2-pre.0
13
-
14
- ### Patch Changes
15
-
16
- - Updated dependencies:
17
- - `react-router@7.9.2-pre.0`
18
- - `@react-router/node@7.9.2-pre.0`
19
- - `@react-router/express@7.9.2-pre.0`
20
-
21
3
  ## 7.9.1
22
4
 
23
5
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/serve v0.0.0-experimental-667adc806
3
+ * @react-router/serve v0.0.0-experimental-6129054f2
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -112,27 +112,22 @@ async function run() {
112
112
  };
113
113
  let app = (0, import_express2.default)();
114
114
  app.disable("x-powered-by");
115
+ app.use((0, import_compression.default)());
115
116
  app.use(
116
117
  import_node_path.default.posix.join(build.publicPath, "assets"),
117
- (0, import_compression.default)(),
118
118
  import_express2.default.static(import_node_path.default.join(build.assetsBuildDirectory, "assets"), {
119
119
  immutable: true,
120
120
  maxAge: "1y"
121
121
  })
122
122
  );
123
- app.use(
124
- build.publicPath,
125
- (0, import_compression.default)(),
126
- import_express2.default.static(build.assetsBuildDirectory)
127
- );
128
- app.use((0, import_compression.default)(), import_express2.default.static("public", { maxAge: "1h" }));
123
+ app.use(build.publicPath, import_express2.default.static(build.assetsBuildDirectory));
124
+ app.use(import_express2.default.static("public", { maxAge: "1h" }));
129
125
  app.use((0, import_morgan.default)("tiny"));
130
126
  if (isRSCServerBuild(build)) {
131
127
  app.all("*", (0, import_node_fetch_server.createRequestListener)(build.fetch));
132
128
  } else {
133
129
  app.all(
134
130
  "*",
135
- (0, import_compression.default)(),
136
131
  (0, import_express.createRequestHandler)({
137
132
  build,
138
133
  mode: process.env.NODE_ENV
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/serve",
3
- "version": "0.0.0-experimental-667adc806",
3
+ "version": "0.0.0-experimental-6129054f2",
4
4
  "description": "Production application server for React Router",
5
5
  "bugs": {
6
6
  "url": "https://github.com/remix-run/react-router/issues"
@@ -38,11 +38,11 @@
38
38
  "get-port": "5.1.1",
39
39
  "morgan": "^1.10.0",
40
40
  "source-map-support": "^0.5.21",
41
- "@react-router/express": "0.0.0-experimental-667adc806",
42
- "@react-router/node": "0.0.0-experimental-667adc806"
41
+ "@react-router/express": "0.0.0-experimental-6129054f2",
42
+ "@react-router/node": "0.0.0-experimental-6129054f2"
43
43
  },
44
44
  "peerDependencies": {
45
- "react-router": "0.0.0-experimental-667adc806"
45
+ "react-router": "0.0.0-experimental-6129054f2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/compression": "^1.7.0",