load client proxy test w/out server helpers for production envs
This commit is contained in:
parent
d46ed6f587
commit
3ef4afbcf8
1 changed files with 2 additions and 2 deletions
|
|
@ -2,6 +2,8 @@ module.exports = async (server) => {
|
|||
|
||||
const { api, env, path, util } = server;
|
||||
|
||||
server.inject("kiri", "main.js");
|
||||
|
||||
if (!(env.debug || env.electron)) {
|
||||
util.log('not a valid context for proxy');
|
||||
return;
|
||||
|
|
@ -12,8 +14,6 @@ module.exports = async (server) => {
|
|||
"/server/files/upload": proxy_post,
|
||||
"/api/files/local": proxy_post,
|
||||
});
|
||||
|
||||
server.inject("kiri", "main.js");
|
||||
};
|
||||
|
||||
function proxy_post(req, res, next) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue