@ganglion/xacpx-relay 0.8.0 → 0.9.0
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.js +10 -0
- package/dist/relay-web/assets/{DashboardView-qq0Rv5HT.js → DashboardView-pxxhASTg.js} +79 -79
- package/dist/relay-web/assets/LoginView-BDsZDCu4.css +1 -0
- package/dist/relay-web/assets/LoginView-CH3Gr1EY.js +1 -0
- package/dist/relay-web/assets/{SettingsView-DChr5KoZ.js → SettingsView-Deilrt-x.js} +2 -2
- package/dist/relay-web/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/dist/relay-web/assets/{index-DLj88NJ6.css → index-BppLIa87.css} +1 -1
- package/dist/relay-web/assets/index-aG3mrM6y.js +98 -0
- package/dist/relay-web/assets/{theme-yXKfObZ9.js → theme-DpFOOchX.js} +1 -1
- package/dist/relay-web/index.html +2 -2
- package/dist/relay-web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/relay-web/assets/BrandLogo.vue_vue_type_script_setup_true_lang-BtzVQiX-.js +0 -1
- package/dist/relay-web/assets/LoginView-VO7V-HuK.js +0 -1
- package/dist/relay-web/assets/index-DcwLeItv.js +0 -98
package/dist/cli.js
CHANGED
|
@@ -994,6 +994,16 @@ function createApp(deps) {
|
|
|
994
994
|
});
|
|
995
995
|
if (deps.webRoot) {
|
|
996
996
|
const root = deps.webRoot;
|
|
997
|
+
app.use("/*", async (c, next) => {
|
|
998
|
+
await next();
|
|
999
|
+
const path = c.req.path;
|
|
1000
|
+
if (path.startsWith("/api") || path.startsWith("/ws"))
|
|
1001
|
+
return;
|
|
1002
|
+
if (!c.res.ok)
|
|
1003
|
+
return;
|
|
1004
|
+
const isHtml = (c.res.headers.get("content-type") ?? "").includes("text/html");
|
|
1005
|
+
c.header("Cache-Control", !isHtml && path.startsWith("/assets/") ? "public, max-age=31536000, immutable" : "no-cache");
|
|
1006
|
+
});
|
|
997
1007
|
app.use("/*", serveStatic({ root }));
|
|
998
1008
|
app.get("/*", serveStatic({ path: "index.html", root }));
|
|
999
1009
|
}
|