aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
authorZero~Informatique2020-02-12 00:09:34 +0100
committerZero~Informatique2020-02-12 00:10:22 +0100
commit19d40a5ee98fb1f244612155acc559ff2f21bf6b (patch)
tree836e46364b95197da1d643880e9ab259dce32076 /viewer/vue.config.js
parente61a7c84f1a1753186980ff1990ee146395ddfc1 (diff)
downloadldgallery-19d40a5ee98fb1f244612155acc559ff2f21bf6b.tar.gz
viewer: implemented config.json
Note: The DevServer needs to know when the file is from the App, or from the FileSystem. We use a tilde to make this separation. The tilde URL is declared in '.env.development' GitHub: Resolves #32
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 9d885bd..9b92dc2 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -43,7 +43,7 @@ module.exports = {
43 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length); 43 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length);
44 const paramIdx = url.indexOf('?'); 44 const paramIdx = url.indexOf('?');
45 const filepath = paramIdx < 0 ? url : url.substring(0, paramIdx); 45 const filepath = paramIdx < 0 ? url : url.substring(0, paramIdx);
46 const fullpath = `${process.env.VUE_APP_EXAMPLE_PROJECT}${decodeURIComponent(filepath)}`; 46 const fullpath = `${process.env.VUE_APP_DEVSERVER_CONFIG_PATH}${decodeURIComponent(filepath)}`;
47 const file = fs.readFileSync(fullpath); 47 const file = fs.readFileSync(fullpath);
48 res.end(file); 48 res.end(file);
49 }); 49 });