load client proxy test w/out server helpers for production envs

This commit is contained in:
Stewart Allen 2026-03-01 22:47:48 -05:00
commit 3ef4afbcf8

View file

@ -2,6 +2,8 @@ module.exports = async (server) => {
const { api, env, path, util } = server; const { api, env, path, util } = server;
server.inject("kiri", "main.js");
if (!(env.debug || env.electron)) { if (!(env.debug || env.electron)) {
util.log('not a valid context for proxy'); util.log('not a valid context for proxy');
return; return;
@ -12,8 +14,6 @@ module.exports = async (server) => {
"/server/files/upload": proxy_post, "/server/files/upload": proxy_post,
"/api/files/local": proxy_post, "/api/files/local": proxy_post,
}); });
server.inject("kiri", "main.js");
}; };
function proxy_post(req, res, next) { function proxy_post(req, res, next) {