aboutsummaryrefslogtreecommitdiff
path: root/viewer/vue.config.js
diff options
context:
space:
mode:
authorOzoneGrif2020-01-31 02:26:12 +0100
committerGitHub2020-01-31 02:26:12 +0100
commitd94b987463169b254ab69a79ddb58e5beccb0941 (patch)
tree51f66cdada6a8e920ba80a3aae76393e0127d825 /viewer/vue.config.js
parent15c806adec22239096a910b92b49fcfb964815bd (diff)
parent2157b66f3ea43137391939992cac4dc901a4ac4e (diff)
downloadldgallery-d94b987463169b254ab69a79ddb58e5beccb0941.tar.gz
Merge pull request #65 from pacien/oz-viewer
viewer improvements
Diffstat (limited to 'viewer/vue.config.js')
-rw-r--r--viewer/vue.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 55cd2e7..67b7461 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -18,6 +18,7 @@
18*/ 18*/
19 19
20module.exports = { 20module.exports = {
21 publicPath: "./",
21 pluginOptions: { 22 pluginOptions: {
22 i18n: { 23 i18n: {
23 locale: "en", 24 locale: "en",
@@ -31,7 +32,7 @@ module.exports = {
31 port: 8085, 32 port: 8085,
32 serveIndex: true, 33 serveIndex: true,
33 before: (app, server, compiler) => { 34 before: (app, server, compiler) => {
34 app.get(`${process.env.VUE_APP_DATA_URL}*`, (req, res) => { 35 app.get(`/${process.env.VUE_APP_DATA_URL}*`, (req, res) => {
35 const fs = require("fs"); 36 const fs = require("fs");
36 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length); 37 const url = req.url.slice(process.env.VUE_APP_DATA_URL.length);
37 const paramIdx = url.indexOf('?'); 38 const paramIdx = url.indexOf('?');