one 1.1.312 → 1.1.313
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/serve.cjs +36 -22
- package/dist/cjs/serve.cjs.map +2 -2
- package/dist/cjs/serve.native.js +18 -19
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/vite/build.cjs +6 -2
- package/dist/cjs/vite/build.cjs.map +1 -1
- package/dist/cjs/vite/build.native.js +5 -2
- package/dist/cjs/vite/build.native.js.map +2 -2
- package/dist/esm/serve.js +10 -13
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +28 -14
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +11 -19
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/vite/build.js +3 -1
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +5 -1
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +5 -1
- package/dist/esm/vite/build.native.js.map +2 -2
- package/package.json +7 -7
- package/src/serve.ts +28 -15
- package/src/vite/build.ts +2 -0
- package/src/vite/types.ts +5 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/types.d.ts +5 -1
- package/types/vite/types.d.ts.map +1 -1
package/dist/cjs/serve.cjs
CHANGED
@@ -36,27 +36,31 @@ __export(serve_exports, {
|
|
36
36
|
module.exports = __toCommonJS(serve_exports);
|
37
37
|
var import_polyfills_server = require("./polyfills-server.cjs"),
|
38
38
|
import_fs_extra = __toESM(require("fs-extra"), 1),
|
39
|
-
import_node_path =
|
40
|
-
import_vxrn = require("vxrn")
|
41
|
-
import_label_process = require("./cli/label-process.cjs"),
|
42
|
-
import_createHandleRequest = require("./createHandleRequest.cjs"),
|
43
|
-
import_isResponse = require("./utils/isResponse.cjs"),
|
44
|
-
import_isStatus = require("./utils/isStatus.cjs"),
|
45
|
-
import_removeUndefined = require("./utils/removeUndefined.cjs"),
|
46
|
-
import_one = require("./vite/one.cjs"),
|
47
|
-
import_resolveAPIRequest = require("./vite/resolveAPIRequest.cjs");
|
39
|
+
import_node_path = require("node:path"),
|
40
|
+
import_vxrn = require("vxrn");
|
48
41
|
process.on("uncaughtException", err => {
|
49
42
|
console.error("[one] Uncaught exception", err?.stack || err);
|
50
43
|
});
|
51
44
|
async function serve(args = {}) {
|
52
|
-
|
53
|
-
|
45
|
+
const buildInfo = await import_fs_extra.default.readJSON("dist/buildInfo.json");
|
46
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
47
|
+
const {
|
48
|
+
labelProcess
|
49
|
+
} = await import("./cli/label-process"),
|
50
|
+
{
|
51
|
+
removeUndefined
|
52
|
+
} = await import("./utils/removeUndefined"),
|
53
|
+
{
|
54
|
+
loadUserOneOptions
|
55
|
+
} = await import("./vite/one");
|
56
|
+
labelProcess("serve"), (0, import_vxrn.loadEnv)("production");
|
57
|
+
const oneOptions = await loadUserOneOptions("serve");
|
54
58
|
return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
|
55
59
|
server: {
|
56
60
|
// fallback to one plugin
|
57
61
|
...oneOptions.server,
|
58
62
|
// override with any flags given to cli
|
59
|
-
...
|
63
|
+
...removeUndefined({
|
60
64
|
port: args.port ? +args.port : void 0,
|
61
65
|
host: args.host,
|
62
66
|
compress: args.compress,
|
@@ -64,15 +68,26 @@ async function serve(args = {}) {
|
|
64
68
|
cacheHeaders: args.cacheHeaders
|
65
69
|
}),
|
66
70
|
async beforeStart(options, app) {
|
67
|
-
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, app);
|
71
|
+
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, buildInfo, app);
|
68
72
|
}
|
69
73
|
}
|
70
74
|
});
|
71
75
|
}
|
72
|
-
async function oneServe(options, vxrnOptions, app) {
|
73
|
-
const
|
76
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
77
|
+
const {
|
78
|
+
createHandleRequest
|
79
|
+
} = await import("./createHandleRequest"),
|
80
|
+
{
|
81
|
+
isResponse
|
82
|
+
} = await import("./utils/isResponse"),
|
83
|
+
{
|
84
|
+
isStatusRedirect
|
85
|
+
} = await import("./utils/isStatus"),
|
86
|
+
{
|
87
|
+
resolveAPIRequest
|
88
|
+
} = await import("./vite/resolveAPIRequest"),
|
74
89
|
isAPIRequest = /* @__PURE__ */new WeakMap(),
|
75
|
-
|
90
|
+
root = vxrnOptions.root || ".",
|
76
91
|
redirects = options.web?.redirects;
|
77
92
|
if (redirects) for (const redirect of redirects) app.get(redirect.source, context => {
|
78
93
|
const destinationUrl = redirect.destination.replace(/:\w+/g, param => {
|
@@ -81,7 +96,6 @@ async function oneServe(options, vxrnOptions, app) {
|
|
81
96
|
});
|
82
97
|
return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
|
83
98
|
});
|
84
|
-
const buildInfo = await import_fs_extra.default.readJSON(toAbsolute("dist/buildInfo.json"));
|
85
99
|
if (!buildInfo) throw new Error("No build info found, have you run build?");
|
86
100
|
const {
|
87
101
|
routeMap,
|
@@ -95,14 +109,14 @@ async function oneServe(options, vxrnOptions, app) {
|
|
95
109
|
},
|
96
110
|
render = (await import((0, import_vxrn.getServerEntry)(serverOptions))).default.render,
|
97
111
|
apiCJS = options.build?.api?.outputFormat === "cjs",
|
98
|
-
handleRequest =
|
112
|
+
handleRequest = createHandleRequest({}, {
|
99
113
|
async handleAPI({
|
100
114
|
route,
|
101
115
|
request,
|
102
116
|
loaderProps
|
103
117
|
}) {
|
104
118
|
const apiFile = (0, import_node_path.join)(process.cwd(), "dist", "api", route.page.replace("[", "_").replace("]", "_") + (apiCJS ? ".cjs" : ".js"));
|
105
|
-
return isAPIRequest.set(request, !0),
|
119
|
+
return isAPIRequest.set(request, !0), resolveAPIRequest(async () => {
|
106
120
|
try {
|
107
121
|
return await import(apiFile);
|
108
122
|
} catch (err) {
|
@@ -129,7 +143,7 @@ async function oneServe(options, vxrnOptions, app) {
|
|
129
143
|
}) {
|
130
144
|
if (route.type === "ssr") {
|
131
145
|
const buildInfo2 = routeToBuildInfo[route.page];
|
132
|
-
if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}`);
|
146
|
+
if (!buildInfo2) throw new Error(`No buildinfo found for ${url}, route: ${route.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
|
133
147
|
try {
|
134
148
|
const loaderData = await (await import(buildInfo2.serverJsPath)).loader?.(loaderProps),
|
135
149
|
preloads = buildInfo2.preloads,
|
@@ -161,8 +175,8 @@ async function oneServe(options, vxrnOptions, app) {
|
|
161
175
|
const request = context.req.raw,
|
162
176
|
response = await handleRequest.handler(request);
|
163
177
|
if (response) {
|
164
|
-
if (
|
165
|
-
if (
|
178
|
+
if (isResponse(response)) {
|
179
|
+
if (isStatusRedirect(response.status)) {
|
166
180
|
const location = `${response.headers.get("location") || ""}`;
|
167
181
|
return context.redirect(location, response.status);
|
168
182
|
}
|
package/dist/cjs/serve.cjs.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,
|
5
|
-
"names": ["
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BAEP,kBAAoB,iCAEpB,mBAAqB,sBAErB,cAA4D;AAK5D,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,CAAC;AAED,eAAsB,MAAM,OAA8B,CAAC,GAAG;AAC5D,QAAM,YAAa,MAAM,gBAAAA,QAAQ,SAAS,qBAAqB;AAG/D,UAAQ,IAAI,gBAAgB,UAAU,UAAU;AAGhD,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO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,SAAS,QAAQ,IAAI,eAAe,CAAC;AAAA,gBAC7D;AAAA,cACF;AAAA,YACF;AAGF,iBAAO;AAAA,QACT;AAEA,eAAO,QAAQ;AAAA,UACb;AAAA,UACA;AAAA,UACA,aAAa,IAAI,OAAO,IACpB;AAAA,YACE,iBAAiB;AAAA,UACnB,IACA;AAAA,QACN;AAAA,MACF;AAAA,IACF,SAAS,KAAK;AACZ,cAAQ,MAAM,kCAAmC,IAAY,KAAQ,EAAE;AAAA,IACzE;AAEA,UAAM,KAAK;AAAA,EACb,CAAC;AACH;",
|
5
|
+
"names": ["FSExtra", "vxrnServe", "buildInfo"]
|
6
6
|
}
|
package/dist/cjs/serve.native.js
CHANGED
@@ -26,20 +26,22 @@ __export(serve_exports, {
|
|
26
26
|
serve: () => serve
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(serve_exports);
|
29
|
-
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path =
|
29
|
+
var import_polyfills_server = require("./polyfills-server"), import_fs_extra = __toESM(require("fs-extra"), 1), import_node_path = require("node:path"), import_vxrn = require("vxrn");
|
30
30
|
process.on("uncaughtException", function(err) {
|
31
31
|
console.error("[one] Uncaught exception", (err == null ? void 0 : err.stack) || err);
|
32
32
|
});
|
33
33
|
async function serve() {
|
34
|
-
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
35
|
-
|
36
|
-
var
|
34
|
+
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, buildInfo = await import_fs_extra.default.readJSON("dist/buildInfo.json");
|
35
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
36
|
+
var { labelProcess } = await import("./cli/label-process"), { removeUndefined } = await import("./utils/removeUndefined"), { loadUserOneOptions } = await import("./vite/one");
|
37
|
+
labelProcess("serve"), (0, import_vxrn.loadEnv)("production");
|
38
|
+
var oneOptions = await loadUserOneOptions("serve");
|
37
39
|
return process.env.VXRN_REACT_19 = "1", await (0, import_vxrn.serve)({
|
38
40
|
server: {
|
39
41
|
// fallback to one plugin
|
40
42
|
...oneOptions.server,
|
41
43
|
// override with any flags given to cli
|
42
|
-
...
|
44
|
+
...removeUndefined({
|
43
45
|
port: args.port ? +args.port : void 0,
|
44
46
|
host: args.host,
|
45
47
|
compress: args.compress,
|
@@ -48,15 +50,13 @@ async function serve() {
|
|
48
50
|
}),
|
49
51
|
async beforeStart(options, app) {
|
50
52
|
var _oneOptions_server_beforeStart, _oneOptions_server;
|
51
|
-
await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, app);
|
53
|
+
await ((_oneOptions_server = oneOptions.server) === null || _oneOptions_server === void 0 || (_oneOptions_server_beforeStart = _oneOptions_server.beforeStart) === null || _oneOptions_server_beforeStart === void 0 ? void 0 : _oneOptions_server_beforeStart.call(_oneOptions_server, options, app)), await oneServe(oneOptions, options, buildInfo, app);
|
52
54
|
}
|
53
55
|
}
|
54
56
|
});
|
55
57
|
}
|
56
|
-
async function oneServe(options, vxrnOptions, app) {
|
57
|
-
var _options_web, _options_build_api, _options_build,
|
58
|
-
return import_node_path.default.resolve(root, p);
|
59
|
-
}, redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
58
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
59
|
+
var _options_web, _options_build_api, _options_build, { createHandleRequest } = await import("./createHandleRequest"), { isResponse } = await import("./utils/isResponse"), { isStatusRedirect } = await import("./utils/isStatus"), { resolveAPIRequest } = await import("./vite/resolveAPIRequest"), isAPIRequest = /* @__PURE__ */ new WeakMap(), root = vxrnOptions.root || ".", redirects = (_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.redirects;
|
60
60
|
if (redirects) {
|
61
61
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
62
62
|
try {
|
@@ -81,7 +81,6 @@ async function oneServe(options, vxrnOptions, app) {
|
|
81
81
|
}
|
82
82
|
}
|
83
83
|
}
|
84
|
-
var buildInfo = await import_fs_extra.default.readJSON(toAbsolute("dist/buildInfo.json"));
|
85
84
|
if (!buildInfo)
|
86
85
|
throw new Error("No build info found, have you run build?");
|
87
86
|
var { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {}, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
|
@@ -103,10 +102,10 @@ async function oneServe(options, vxrnOptions, app) {
|
|
103
102
|
var serverOptions = {
|
104
103
|
...options,
|
105
104
|
root
|
106
|
-
}, entryServer = (0, import_vxrn.getServerEntry)(serverOptions), entry = await import(entryServer), render = entry.default.render, apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs", handleRequest =
|
105
|
+
}, entryServer = (0, import_vxrn.getServerEntry)(serverOptions), entry = await import(entryServer), render = entry.default.render, apiCJS = ((_options_build = options.build) === null || _options_build === void 0 || (_options_build_api = _options_build.api) === null || _options_build_api === void 0 ? void 0 : _options_build_api.outputFormat) === "cjs", handleRequest = createHandleRequest({}, {
|
107
106
|
async handleAPI(param) {
|
108
107
|
var { route: route2, request, loaderProps } = param, apiFile = (0, import_node_path.join)(process.cwd(), "dist", "api", route2.page.replace("[", "_").replace("]", "_") + (apiCJS ? ".cjs" : ".js"));
|
109
|
-
return isAPIRequest.set(request, !0),
|
108
|
+
return isAPIRequest.set(request, !0), resolveAPIRequest(async function() {
|
110
109
|
try {
|
111
110
|
return await import(apiFile);
|
112
111
|
} catch (err) {
|
@@ -129,11 +128,11 @@ async function oneServe(options, vxrnOptions, app) {
|
|
129
128
|
async handleSSR(param) {
|
130
129
|
var { route: route2, url, loaderProps } = param;
|
131
130
|
if (route2.type === "ssr") {
|
132
|
-
var
|
133
|
-
if (!
|
134
|
-
throw new Error(`No buildinfo found for ${url}, route: ${route2.page}`);
|
131
|
+
var _$buildInfo = routeToBuildInfo[route2.page];
|
132
|
+
if (!_$buildInfo)
|
133
|
+
throw new Error(`No buildinfo found for ${url}, route: ${route2.page}, in keys: ${Object.keys(routeToBuildInfo)}`);
|
135
134
|
try {
|
136
|
-
var _exported_loader, exported = await import(
|
135
|
+
var _exported_loader, exported = await import(_$buildInfo.serverJsPath), loaderData = await ((_exported_loader = exported.loader) === null || _exported_loader === void 0 ? void 0 : _exported_loader.call(exported, loaderProps)), preloads = _$buildInfo.preloads, headers = new Headers();
|
137
136
|
return headers.set("content-type", "text/html"), new Response(await render({
|
138
137
|
loaderData,
|
139
138
|
loaderProps,
|
@@ -164,8 +163,8 @@ async function oneServe(options, vxrnOptions, app) {
|
|
164
163
|
try {
|
165
164
|
var request = context.req.raw, response = await handleRequest.handler(request);
|
166
165
|
if (response) {
|
167
|
-
if (
|
168
|
-
if (
|
166
|
+
if (isResponse(response)) {
|
167
|
+
if (isStatusRedirect(response.status)) {
|
169
168
|
var location = `${response.headers.get("location") || ""}`;
|
170
169
|
return context.redirect(location, response.status);
|
171
170
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,
|
5
|
-
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;8BAAO,+BAEP,kBAAoB,iCAEpB,mBAAqB,sBAErB,cAA4D;AAK5DA,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,6BAA4BF,OAAAA,OAAAA,SAAAA,IAAKG,UAASH,GAAAA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QAAQZ,IAAI,iBAAiB,UAAA;YACxC,SAAS7E,KAAK;AACZC,sBAAQ8F,KACN,6CACEnD,QAAQO,IAAIyC,IAAI,wBACMS,SAASZ,QAAQ/C,IAAI,eAAA,CAAA,cAC7C1C,GAAAA;YAEJ;AAGF,iBAAOqG;QACT;AAEA,eAAOzD,QAAQ6D,KACbJ,UACA,KACAjE,aAAaM,IAAI6B,OAAAA,IACb;UACE,iBAAiB;QACnB,IACAjD,MAAAA;MAER;IACF,SAAStB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMkG,KAAAA;EACR,CAAA;AACF;",
|
5
|
+
"names": ["process", "on", "err", "console", "error", "stack", "serve", "args", "buildInfo", "FSExtra", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "loadEnv", "oneOptions", "VXRN_REACT_19", "vxrnServe", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "serverOptions", "entryServer", "getServerEntry", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "join", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
|
6
6
|
}
|
package/dist/cjs/vite/build.cjs
CHANGED
@@ -34,7 +34,8 @@ __export(build_exports, {
|
|
34
34
|
build: () => build
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(build_exports);
|
37
|
-
var
|
37
|
+
var constants = __toESM(require("../constants.cjs"), 1),
|
38
|
+
import_fs_extra = __toESM(require("fs-extra"), 1),
|
38
39
|
import_micromatch = __toESM(require("micromatch"), 1),
|
39
40
|
import_node_module = require("node:module"),
|
40
41
|
import_node_path = __toESM(require("node:path"), 1),
|
@@ -353,7 +354,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
353
354
|
cleanPath,
|
354
355
|
htmlPath
|
355
356
|
}) => (acc[cleanPath] = htmlPath, acc), {}),
|
356
|
-
builtRoutes
|
357
|
+
builtRoutes,
|
358
|
+
constants: JSON.parse(JSON.stringify({
|
359
|
+
...constants
|
360
|
+
}))
|
357
361
|
},
|
358
362
|
buildInfo = {
|
359
363
|
...buildInfoForWriting,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/build.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,cAAmE,iBACnE,cAMO,iBACP,kBAA8C,wBAC9C,uBAA6B,iCAG7B,qBAA4B,0BAC5B,aAAmC,kBACnC,uBAA8B;AApB9B,wBAuBM,EAAE,WAAW,UAAU,WAAW,IAAI,gBAAAA;AAE5C,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,KAAK,WAAW,GAAG;AACnC,CAAC;AAED,eAAsB,MAAM,MAGzB;AACD,yCAAa,OAAO;AAEpB,QAAM,cAAc,UAAM,+BAAmB,OAAO,GAC9C,qBAAqB,YAAY,OAAO,QAAQ,gBAAgB;AAGtE,UAAQ,IAAI,gBAAgB,KAEvB,QAAQ,IAAI,kBACf,QAAQ;AAAA,IACN;AAAA,EACF;AAGF,QAAM,aAAa,UAAM,YAAAC;AAA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AAET,QAAI,SAAS,WAAW,MAAM,GAAG;AAC/B,YAAM,OAAO,SAAS,QAAQ,QAAQ,EAAE,EAAE,QAAQ,KAAK,EAAE;AACzD,aAAK,OAAO,IAAI,KACd,QAAQ,KAAK,oBAAoB,QAAQ,oBAAoB,IAAI,EAAE,GAE9D,IAAI,OAAO,IAAI,CAAC;AAAA,IACzB;AACA,WAAO,IAAI,SACR,MAAM,GAAG,EACT,IAAI,CAAC,SAAS;AACb,UAAI,KAAK,CAAC,MAAM,KAAK;AACnB,cAAM,QAAQ,OAAO,KAAK,MAAM,GAAG,KAAK,SAAS,CAAC,CAAC;AACnD,YAAI,CAAC,OAAO;AACV,cAAI;AACF,kBAAM,IAAI;AAAA,cACR;AAAA;AAAA,0BAEU,IAAI;AAAA,0BACJ,IAAI;AAAA,8BACA,QAAQ;AAAA;AAAA;AAAA,IAGlC,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AAAA,YACrB;AAGF,iBAAO,MAAM,KAAK,QAAQ,KAAK,EAAE,EAAE,QAAQ,KAAK,EAAE;AAAA,QACpD;AACA,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT,CAAC,EACA,KAAK,GAAG,CAAC;AAAA,EACd,GAAG;AAEH,SAAO,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,WAAW,GAAG;AAC7D;AAEA,SAAS,YAAY,QAAgB;AACnC,SAAO,OAAO,QAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS,wBAAwB,MAAgB;AAM/C,QAAM,eAAe,oBAJC,KAAK,IAAI,CAAC,QAAQ,YAAY,GAAG,CAAC,EAEjB,KAAK,GAAG,CAEU;AACzD,SAAO,IAAI,OAAO,YAAY;AAChC;",
|
5
5
|
"names": ["FSExtra", "vxrnBuild", "Path", "viteBuild", "MicroMatch", "file"]
|
6
6
|
}
|
@@ -26,7 +26,7 @@ __export(build_exports, {
|
|
26
26
|
build: () => build
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(build_exports);
|
29
|
-
var import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"), import_label_process = require("../cli/label-process"), import_getManifest = require("./getManifest"), import_one = require("./one"), import_replaceLoader = require("./replaceLoader");
|
29
|
+
var constants = __toESM(require("../constants"), 1), import_fs_extra = __toESM(require("fs-extra"), 1), import_micromatch = __toESM(require("micromatch"), 1), import_node_module = require("node:module"), import_node_path = __toESM(require("node:path"), 1), import_rollup_plugin_node_externals = require("rollup-plugin-node-externals"), import_vite = require("vite"), import_vxrn = require("vxrn"), import_cleanUrl = require("../cleanUrl"), import_label_process = require("../cli/label-process"), import_getManifest = require("./getManifest"), import_one = require("./one"), import_replaceLoader = require("./replaceLoader");
|
30
30
|
const import_meta = {};
|
31
31
|
var { ensureDir, readFile, outputFile } = import_fs_extra.default;
|
32
32
|
process.on("uncaughtException", function(err) {
|
@@ -378,7 +378,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
378
378
|
return acc[cleanPath] = htmlPath, acc;
|
379
379
|
}, {}), buildInfoForWriting = {
|
380
380
|
routeMap,
|
381
|
-
builtRoutes
|
381
|
+
builtRoutes,
|
382
|
+
constants: JSON.parse(JSON.stringify({
|
383
|
+
...constants
|
384
|
+
}))
|
382
385
|
}, buildInfo = {
|
383
386
|
...buildInfoForWriting,
|
384
387
|
...vxrnOutput
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/build.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;sBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9B,c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AAAA;8BACIxD,QAAAA;;;IAG1BpH,KAAKC,UAAU4H,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM+C,MAAKpI,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOwD;MACT;AACA,aAAO4E;IACT,CAAA,EACClK,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGiC,OAAAA,GAAUgI,cAAAA,GAAiBnI,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASsI,YAAYC,QAAc;AACjC,SAAOA,OAAOvI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASrC,wBAAwB6K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKnL,IAAI,SAACqL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcvK,KAAK,GAAA,GAEtC0K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
-
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;gBAA2B,qCAC3B,kBAAoB,iCACpB,oBAAuB,mCACvB,qBAA8B,wBAC9B,mBAAqC,kCAErC,sCAA8B,yCAC9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YAAI,CAACyG,OAAO;AACV,cAAI4E;AACF,kBAAM,IAAIvD,MACR;;0BAEUN,IAAAA;0BACA+D,KAAAA;8BACI1D,QAAAA;;;IAG1BpH,KAAKC,UAAU4H,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAMiD,MAAKtI,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOwD;MACT;AACA,aAAO8E;IACT,CAAA,EACCpK,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGiC,OAAAA,GAAUkI,cAAAA,GAAiBrI,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASwI,YAAYC,QAAc;AACjC,SAAOA,OAAOzI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASrC,wBAAwB+K,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKrL,IAAI,SAACuL,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAczK,KAAK,GAAA,GAEtC4K,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
+
"names": ["ensureDir", "readFile", "outputFile", "FSExtra", "process", "on", "err", "console", "error", "message", "build", "args", "userOptions", "options", "labelProcess", "loadUserOneOptions", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "vxrnBuild", "analyze", "fillOptions", "toAbsolute", "p", "Path", "resolve", "root", "manifest", "getManifest", "optimizeDeps", "getOptimizeDeps", "apiBuildConfig", "mergeConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "join", "apiOutputFormat", "api", "treeshake", "viteBuild", "plugins", "nodeExternals", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "rollupRemoveUnusedImportsPlugin", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "createRequire", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "relative", "cwd", "onlyBuild", "buildArgs", "only", "MicroMatch", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "getPreloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "replaceLoader", "loaderPartialPath", "getLoaderPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "constants", "parse", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
6
6
|
}
|
package/dist/esm/serve.js
CHANGED
@@ -1,18 +1,14 @@
|
|
1
1
|
import "./polyfills-server";
|
2
2
|
import FSExtra from "fs-extra";
|
3
|
-
import
|
3
|
+
import { join } from "node:path";
|
4
4
|
import { getServerEntry, loadEnv, serve as vxrnServe } from "vxrn";
|
5
|
-
import { labelProcess } from "./cli/label-process";
|
6
|
-
import { createHandleRequest } from "./createHandleRequest";
|
7
|
-
import { isResponse } from "./utils/isResponse";
|
8
|
-
import { isStatusRedirect } from "./utils/isStatus";
|
9
|
-
import { removeUndefined } from "./utils/removeUndefined";
|
10
|
-
import { loadUserOneOptions } from "./vite/one";
|
11
|
-
import { resolveAPIRequest } from "./vite/resolveAPIRequest";
|
12
5
|
process.on("uncaughtException", (err) => {
|
13
6
|
console.error("[one] Uncaught exception", err?.stack || err);
|
14
7
|
});
|
15
8
|
async function serve(args = {}) {
|
9
|
+
const buildInfo = await FSExtra.readJSON("dist/buildInfo.json");
|
10
|
+
process.env.ONE_CACHE_KEY = buildInfo.constants.CACHE_KEY;
|
11
|
+
const { labelProcess } = await import("./cli/label-process"), { removeUndefined } = await import("./utils/removeUndefined"), { loadUserOneOptions } = await import("./vite/one");
|
16
12
|
labelProcess("serve"), loadEnv("production");
|
17
13
|
const oneOptions = await loadUserOneOptions("serve");
|
18
14
|
return process.env.VXRN_REACT_19 = "1", await vxrnServe({
|
@@ -28,13 +24,13 @@ async function serve(args = {}) {
|
|
28
24
|
cacheHeaders: args.cacheHeaders
|
29
25
|
}),
|
30
26
|
async beforeStart(options, app) {
|
31
|
-
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, app);
|
27
|
+
await oneOptions.server?.beforeStart?.(options, app), await oneServe(oneOptions, options, buildInfo, app);
|
32
28
|
}
|
33
29
|
}
|
34
30
|
});
|
35
31
|
}
|
36
|
-
async function oneServe(options, vxrnOptions, app) {
|
37
|
-
const
|
32
|
+
async function oneServe(options, vxrnOptions, buildInfo, app) {
|
33
|
+
const { createHandleRequest } = await import("./createHandleRequest"), { isResponse } = await import("./utils/isResponse"), { isStatusRedirect } = await import("./utils/isStatus"), { resolveAPIRequest } = await import("./vite/resolveAPIRequest"), isAPIRequest = /* @__PURE__ */ new WeakMap(), root = vxrnOptions.root || ".", redirects = options.web?.redirects;
|
38
34
|
if (redirects)
|
39
35
|
for (const redirect of redirects)
|
40
36
|
app.get(redirect.source, (context) => {
|
@@ -44,7 +40,6 @@ async function oneServe(options, vxrnOptions, app) {
|
|
44
40
|
});
|
45
41
|
return context.redirect(destinationUrl, redirect.permanent ? 301 : 302);
|
46
42
|
});
|
47
|
-
const buildInfo = await FSExtra.readJSON(toAbsolute("dist/buildInfo.json"));
|
48
43
|
if (!buildInfo)
|
49
44
|
throw new Error("No build info found, have you run build?");
|
50
45
|
const { routeMap, builtRoutes } = buildInfo, routeToBuildInfo = {};
|
@@ -91,7 +86,9 @@ async function oneServe(options, vxrnOptions, app) {
|
|
91
86
|
if (route.type === "ssr") {
|
92
87
|
const buildInfo2 = routeToBuildInfo[route.page];
|
93
88
|
if (!buildInfo2)
|
94
|
-
throw new Error(
|
89
|
+
throw new Error(
|
90
|
+
`No buildinfo found for ${url}, route: ${route.page}, in keys: ${Object.keys(routeToBuildInfo)}`
|
91
|
+
);
|
95
92
|
try {
|
96
93
|
const loaderData = await (await import(buildInfo2.serverJsPath)).loader?.(loaderProps), preloads = buildInfo2.preloads, headers = new Headers();
|
97
94
|
return headers.set("content-type", "text/html"), new Response(
|
package/dist/esm/serve.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/serve.ts"],
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,OAAO,aAAa;AAEpB,SAAS,YAAY;AAErB,SAAS,gBAAgB,SAAS,SAAS,iBAAiB;AAK5D,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,UAAQ,MAAM,4BAA4B,KAAK,SAAS,GAAG;AAC7D,C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