aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
authorZero~Informatique2020-01-07 19:46:41 +0100
committerZero~Informatique2020-01-07 19:46:41 +0100
commitc7153c8d6d3879566b49af0f7b23593d46477eb9 (patch)
tree3e6d0c639b1fefd115322edac7638a5093ee8c15 /viewer/vue.config.js
parente3a5a52114880bdabf62cb205ec01374a93a28bd (diff)
downloadldgallery-c7153c8d6d3879566b49af0f7b23593d46477eb9.tar.gz
viewer: relative gallery path (NOT STABLE with current compiler)
compiler: commands for compilation on Windows
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js4
1 files changed, 2 insertions, 2 deletions
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 = {
12 port: 8085, 12 port: 8085,
13 serveIndex: true, 13 serveIndex: true,
14 before: (app, server, compiler) => { 14 before: (app, server, compiler) => {
15 app.get(`${process.env.VUE_APP_DATA_URL}/*`, (req, res) => { 15 app.get(`${process.env.VUE_APP_DATA_URL}*`, (req, res) => {
16 const fs = require("fs"); 16 const fs = require("fs");
17 const fileName = `../${process.env.VUE_APP_EXAMPLE_PROJECT}${req.url.slice(process.env.VUE_APP_DATA_URL.length)}`; 17 const fileName = `${process.env.VUE_APP_EXAMPLE_PROJECT}${req.url.slice(process.env.VUE_APP_DATA_URL.length)}`;
18 const file = fs.readFileSync(decodeURIComponent(fileName)); 18 const file = fs.readFileSync(decodeURIComponent(fileName));
19 res.end(file); 19 res.end(file);
20 }); 20 });