@modern-js/app-tools 2.49.1-alpha.8 → 2.49.1-alpha.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,26 @@ var deploy_default = () => ({
|
|
62
62
|
await import_utils.fs.remove(vercelOutput);
|
63
63
|
outputDirectory = import_path.default.join(vercelOutput, "output");
|
64
64
|
const config2 = {
|
65
|
-
version: 3
|
65
|
+
version: 3,
|
66
|
+
routes: [
|
67
|
+
{
|
68
|
+
src: "/static/(.*)",
|
69
|
+
headers: {
|
70
|
+
"cache-control": "s-maxage=31536000, immutable"
|
71
|
+
},
|
72
|
+
continue: true
|
73
|
+
},
|
74
|
+
{
|
75
|
+
handle: "filesystem"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
src: "/(.*)",
|
79
|
+
headers: {
|
80
|
+
"cache-control": "s-maxage=0"
|
81
|
+
},
|
82
|
+
dest: "/html/main/index.html"
|
83
|
+
}
|
84
|
+
]
|
66
85
|
};
|
67
86
|
await import_utils.fs.ensureDir(outputDirectory);
|
68
87
|
await import_utils.fs.writeJSON(import_path.default.join(outputDirectory, "config.json"), config2);
|
@@ -61,7 +61,26 @@ function deploy_default() {
|
|
61
61
|
_state.sent();
|
62
62
|
outputDirectory = path.join(vercelOutput, "output");
|
63
63
|
config = {
|
64
|
-
version: 3
|
64
|
+
version: 3,
|
65
|
+
routes: [
|
66
|
+
{
|
67
|
+
src: "/static/(.*)",
|
68
|
+
headers: {
|
69
|
+
"cache-control": "s-maxage=31536000, immutable"
|
70
|
+
},
|
71
|
+
continue: true
|
72
|
+
},
|
73
|
+
{
|
74
|
+
handle: "filesystem"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
src: "/(.*)",
|
78
|
+
headers: {
|
79
|
+
"cache-control": "s-maxage=0"
|
80
|
+
},
|
81
|
+
dest: "/html/main/index.html"
|
82
|
+
}
|
83
|
+
]
|
65
84
|
};
|
66
85
|
return [
|
67
86
|
4,
|
@@ -29,7 +29,26 @@ var deploy_default = () => ({
|
|
29
29
|
await fse.remove(vercelOutput);
|
30
30
|
outputDirectory = path.join(vercelOutput, "output");
|
31
31
|
const config2 = {
|
32
|
-
version: 3
|
32
|
+
version: 3,
|
33
|
+
routes: [
|
34
|
+
{
|
35
|
+
src: "/static/(.*)",
|
36
|
+
headers: {
|
37
|
+
"cache-control": "s-maxage=31536000, immutable"
|
38
|
+
},
|
39
|
+
continue: true
|
40
|
+
},
|
41
|
+
{
|
42
|
+
handle: "filesystem"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
src: "/(.*)",
|
46
|
+
headers: {
|
47
|
+
"cache-control": "s-maxage=0"
|
48
|
+
},
|
49
|
+
dest: "/html/main/index.html"
|
50
|
+
}
|
51
|
+
]
|
33
52
|
};
|
34
53
|
await fse.ensureDir(outputDirectory);
|
35
54
|
await fse.writeJSON(path.join(outputDirectory, "config.json"), config2);
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.49.1-alpha.
|
18
|
+
"version": "2.49.1-alpha.9",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -79,20 +79,20 @@
|
|
79
79
|
"esbuild-register": "^3.5.0",
|
80
80
|
"mlly": "^1.6.1",
|
81
81
|
"pkg-types": "^1.1.0",
|
82
|
-
"@modern-js/plugin": "2.49.0",
|
83
82
|
"@modern-js/core": "2.49.0",
|
84
|
-
"@modern-js/plugin-i18n": "2.49.0",
|
85
|
-
"@modern-js/prod-server": "2.49.0",
|
86
|
-
"@modern-js/server-core": "2.49.0",
|
87
|
-
"@modern-js/plugin-data-loader": "2.49.0",
|
88
83
|
"@modern-js/node-bundle-require": "2.49.0",
|
84
|
+
"@modern-js/plugin": "2.49.0",
|
85
|
+
"@modern-js/prod-server": "2.49.0",
|
86
|
+
"@modern-js/plugin-lint": "2.49.0",
|
89
87
|
"@modern-js/rsbuild-plugin-esbuild": "2.49.1",
|
90
88
|
"@modern-js/server": "2.49.0",
|
91
|
-
"@modern-js/
|
89
|
+
"@modern-js/server-core": "2.49.0",
|
90
|
+
"@modern-js/plugin-i18n": "2.49.0",
|
91
|
+
"@modern-js/server-utils": "2.49.0",
|
92
|
+
"@modern-js/utils": "2.49.0",
|
92
93
|
"@modern-js/types": "2.49.0",
|
93
94
|
"@modern-js/uni-builder": "2.49.0",
|
94
|
-
"@modern-js/
|
95
|
-
"@modern-js/utils": "2.49.0"
|
95
|
+
"@modern-js/plugin-data-loader": "2.49.0"
|
96
96
|
},
|
97
97
|
"devDependencies": {
|
98
98
|
"@rsbuild/plugin-swc": "0.6.4",
|