@react-router/serve 0.0.0-experimental-42a5853ef → 0.0.0-experimental-171f8688e
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/README.md +3 -9
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +2 -13
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @react-router/serve
|
|
2
2
|
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
To get started, open a new shell and run:
|
|
3
|
+
Production application server for [React Router.](https://github.com/remix-run/react-router)
|
|
6
4
|
|
|
7
5
|
```sh
|
|
8
|
-
|
|
6
|
+
npm install @react-router/serve
|
|
9
7
|
```
|
|
10
|
-
|
|
11
|
-
Then follow the prompts you see in your terminal.
|
|
12
|
-
|
|
13
|
-
For more information about Remix, [visit remix.run](https://remix.run)!
|
package/dist/cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/serve v0.0.0-experimental-
|
|
2
|
+
* @react-router/serve v0.0.0-experimental-171f8688e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -10,12 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
require('@react-router/node/install');
|
|
14
13
|
var fs = require('node:fs');
|
|
15
14
|
var os = require('node:os');
|
|
16
15
|
var path = require('node:path');
|
|
17
16
|
var url = require('node:url');
|
|
18
|
-
var node = require('@react-router/node');
|
|
19
17
|
var express$1 = require('@react-router/express');
|
|
20
18
|
var compression = require('compression');
|
|
21
19
|
var express = require('express');
|
|
@@ -52,7 +50,6 @@ sourceMapSupport__default["default"].install({
|
|
|
52
50
|
return null;
|
|
53
51
|
}
|
|
54
52
|
});
|
|
55
|
-
node.installGlobals();
|
|
56
53
|
run();
|
|
57
54
|
function parseNumber(raw) {
|
|
58
55
|
if (raw === undefined) return undefined;
|
|
@@ -88,15 +85,7 @@ async function run() {
|
|
|
88
85
|
immutable: true,
|
|
89
86
|
maxAge: "1y"
|
|
90
87
|
}));
|
|
91
|
-
app.use(build.publicPath, express__default["default"].static(build.assetsBuildDirectory
|
|
92
|
-
// Don't redirect directory index.html request to include a trailing slash
|
|
93
|
-
redirect: false,
|
|
94
|
-
setHeaders: function (res, path) {
|
|
95
|
-
if (path.endsWith(".data")) {
|
|
96
|
-
res.set("Content-Type", "text/x-turbo");
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}));
|
|
88
|
+
app.use(build.publicPath, express__default["default"].static(build.assetsBuildDirectory));
|
|
100
89
|
app.use(express__default["default"].static("public", {
|
|
101
90
|
maxAge: "1h"
|
|
102
91
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/serve",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-171f8688e",
|
|
4
4
|
"description": "Production application server for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"get-port": "5.1.1",
|
|
24
24
|
"morgan": "^1.10.0",
|
|
25
25
|
"source-map-support": "^0.5.21",
|
|
26
|
-
"@react-router/express": "0.0.0-experimental-
|
|
27
|
-
"@react-router/node": "0.0.0-experimental-
|
|
26
|
+
"@react-router/express": "0.0.0-experimental-171f8688e",
|
|
27
|
+
"@react-router/node": "0.0.0-experimental-171f8688e"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react-router": "0.0.0-experimental-
|
|
30
|
+
"react-router": "0.0.0-experimental-171f8688e"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/compression": "^1.7.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/source-map-support": "^0.5.6"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist/",
|