closeclaw 3.0.2 → 3.0.4
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 +898 -739
- 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.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
|