@cedarjs/cli 6.0.0-canary.2944 → 6.0.0-canary.2947
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/dist/commands/serve.js +2 -2
- package/package.json +14 -14
package/dist/commands/serve.js
CHANGED
|
@@ -107,7 +107,7 @@ const builder = async (yargs) => {
|
|
|
107
107
|
const webHost = argv.webHost ?? getWebHost({ isPublicSide: true });
|
|
108
108
|
const apiRootPath = argv.apiRootPath ?? "/";
|
|
109
109
|
const apiTarget = `http://${apiHost.includes(":") ? `[${apiHost}]` : apiHost}:${apiPort}`;
|
|
110
|
-
const {
|
|
110
|
+
const { staticMiddleware } = await import("srvx/static");
|
|
111
111
|
const apiUrl = getConfig().web.apiUrl;
|
|
112
112
|
const webDist = getPaths().web.dist;
|
|
113
113
|
const prerenderIndexPath = path.join(webDist, "200.html");
|
|
@@ -117,7 +117,7 @@ const builder = async (yargs) => {
|
|
|
117
117
|
// Dummy fetch handler. All requests are handled by middleware
|
|
118
118
|
fetch: async () => new Response("Not Found", { status: 404 }),
|
|
119
119
|
middleware: [
|
|
120
|
-
|
|
120
|
+
staticMiddleware({ dir: webDist }),
|
|
121
121
|
async (req, next) => {
|
|
122
122
|
const url = new URL(req.url, "http://localhost");
|
|
123
123
|
if (!url.pathname.startsWith(apiUrl)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2947",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@babel/preset-typescript": "7.29.7",
|
|
37
37
|
"@babel/traverse": "7.29.7",
|
|
38
38
|
"@babel/types": "7.29.7",
|
|
39
|
-
"@cedarjs/api-server": "6.0.0-canary.
|
|
40
|
-
"@cedarjs/babel-config": "6.0.0-canary.
|
|
41
|
-
"@cedarjs/cli-helpers": "6.0.0-canary.
|
|
42
|
-
"@cedarjs/internal": "6.0.0-canary.
|
|
43
|
-
"@cedarjs/prerender": "6.0.0-canary.
|
|
44
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
45
|
-
"@cedarjs/structure": "6.0.0-canary.
|
|
46
|
-
"@cedarjs/telemetry": "6.0.0-canary.
|
|
47
|
-
"@cedarjs/utils": "6.0.0-canary.
|
|
48
|
-
"@cedarjs/vite": "6.0.0-canary.
|
|
49
|
-
"@cedarjs/web-server": "6.0.0-canary.
|
|
39
|
+
"@cedarjs/api-server": "6.0.0-canary.2947",
|
|
40
|
+
"@cedarjs/babel-config": "6.0.0-canary.2947",
|
|
41
|
+
"@cedarjs/cli-helpers": "6.0.0-canary.2947",
|
|
42
|
+
"@cedarjs/internal": "6.0.0-canary.2947",
|
|
43
|
+
"@cedarjs/prerender": "6.0.0-canary.2947",
|
|
44
|
+
"@cedarjs/project-config": "6.0.0-canary.2947",
|
|
45
|
+
"@cedarjs/structure": "6.0.0-canary.2947",
|
|
46
|
+
"@cedarjs/telemetry": "6.0.0-canary.2947",
|
|
47
|
+
"@cedarjs/utils": "6.0.0-canary.2947",
|
|
48
|
+
"@cedarjs/vite": "6.0.0-canary.2947",
|
|
49
|
+
"@cedarjs/web-server": "6.0.0-canary.2947",
|
|
50
50
|
"@listr2/prompt-adapter-enquirer": "4.3.0",
|
|
51
51
|
"@opentelemetry/api": "1.9.1",
|
|
52
52
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"prompts": "2.4.2",
|
|
85
85
|
"semver": "7.8.5",
|
|
86
86
|
"smol-toml": "1.8.0",
|
|
87
|
-
"srvx": "0.
|
|
87
|
+
"srvx": "0.12.5",
|
|
88
88
|
"string-env-interpolation": "1.0.1",
|
|
89
89
|
"systeminformation": "5.31.7",
|
|
90
90
|
"termi-link": "1.1.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"yargs": "17.7.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
97
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2947",
|
|
98
98
|
"@prisma/dmmf": "7.8.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
100
|
"memfs": "4.68.1",
|