From c7153c8d6d3879566b49af0f7b23593d46477eb9 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 7 Jan 2020 19:46:41 +0100 Subject: viewer: relative gallery path (NOT STABLE with current compiler) compiler: commands for compilation on Windows --- viewer/vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/vue.config.js') diff --git a/viewer/vue.config.js b/viewer/vue.config.js index dbf1551..0f84d44 100644 --- a/viewer/vue.config.js +++ b/viewer/vue.config.js @@ -12,9 +12,9 @@ module.exports = { port: 8085, serveIndex: true, before: (app, server, compiler) => { - app.get(`${process.env.VUE_APP_DATA_URL}/*`, (req, res) => { + app.get(`${process.env.VUE_APP_DATA_URL}*`, (req, res) => { const fs = require("fs"); - const fileName = `../${process.env.VUE_APP_EXAMPLE_PROJECT}${req.url.slice(process.env.VUE_APP_DATA_URL.length)}`; + const fileName = `${process.env.VUE_APP_EXAMPLE_PROJECT}${req.url.slice(process.env.VUE_APP_DATA_URL.length)}`; const file = fs.readFileSync(decodeURIComponent(fileName)); res.end(file); }); -- cgit v1.2.3