closeclaw 3.0.2 → 3.0.3
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/cli.cjs +4 -4
- package/dist/cli.jsc +0 -0
- package/dist/index.cjs +4 -4
- package/dist/index.jsc +0 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -7768,10 +7768,10 @@ var init_index = __esm({
|
|
|
7768
7768
|
publicDir = (0, import_node_path5.join)(_currentDir, "public");
|
|
7769
7769
|
hasPublicDir = (0, import_node_fs5.existsSync)(publicDir);
|
|
7770
7770
|
if (hasPublicDir) {
|
|
7771
|
-
app.use("/assets/*", (0, import_serve_static.serveStatic)({ root:
|
|
7772
|
-
app.use("/fonts/*", (0, import_serve_static.serveStatic)({ root:
|
|
7773
|
-
app.get("/favicon.ico", (0, import_serve_static.serveStatic)({ root:
|
|
7774
|
-
app.get("*", (0, import_serve_static.serveStatic)({ root:
|
|
7771
|
+
app.use("/assets/*", (0, import_serve_static.serveStatic)({ root: publicDir }));
|
|
7772
|
+
app.use("/fonts/*", (0, import_serve_static.serveStatic)({ root: publicDir }));
|
|
7773
|
+
app.get("/favicon.ico", (0, import_serve_static.serveStatic)({ root: publicDir, path: "/favicon.ico" }));
|
|
7774
|
+
app.get("*", (0, import_serve_static.serveStatic)({ root: publicDir, path: "/index.html" }));
|
|
7775
7775
|
} else if (process.env.NODE_ENV !== "development") {
|
|
7776
7776
|
log.warn("server", "No public/ directory found \u2014 frontend will not be served. Run 'npm run build' first.");
|
|
7777
7777
|
}
|
package/dist/cli.jsc
CHANGED
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -6859,10 +6859,10 @@ app.route("", attachmentRoutes);
|
|
|
6859
6859
|
var publicDir = (0, import_node_path4.join)(_currentDir, "public");
|
|
6860
6860
|
var hasPublicDir = (0, import_node_fs4.existsSync)(publicDir);
|
|
6861
6861
|
if (hasPublicDir) {
|
|
6862
|
-
app.use("/assets/*", (0, import_serve_static.serveStatic)({ root:
|
|
6863
|
-
app.use("/fonts/*", (0, import_serve_static.serveStatic)({ root:
|
|
6864
|
-
app.get("/favicon.ico", (0, import_serve_static.serveStatic)({ root:
|
|
6865
|
-
app.get("*", (0, import_serve_static.serveStatic)({ root:
|
|
6862
|
+
app.use("/assets/*", (0, import_serve_static.serveStatic)({ root: publicDir }));
|
|
6863
|
+
app.use("/fonts/*", (0, import_serve_static.serveStatic)({ root: publicDir }));
|
|
6864
|
+
app.get("/favicon.ico", (0, import_serve_static.serveStatic)({ root: publicDir, path: "/favicon.ico" }));
|
|
6865
|
+
app.get("*", (0, import_serve_static.serveStatic)({ root: publicDir, path: "/index.html" }));
|
|
6866
6866
|
} else if (process.env.NODE_ENV !== "development") {
|
|
6867
6867
|
log.warn("server", "No public/ directory found \u2014 frontend will not be served. Run 'npm run build' first.");
|
|
6868
6868
|
}
|
package/dist/index.jsc
CHANGED
|
Binary file
|