tethys.frontend/vue.config.js
Arno Kaimbacher b0aeb03d15 - npm updates
- add solr connection via environment variables
2022-01-21 14:02:28 +01:00

37 lines
987 B
JavaScript

const webpack = require("webpack");
module.exports = {
publicPath: "/",
// chainWebpack: config => {
// config
// .plugin('define')
// .tap(args => {
// args[0] = {
// ...args[0],
// VUE_APP_PORTAL: JSON.stringify(process.env.PORTAL),
// // other stuff
// }
// return args
// })
// },
pages: {
index: {
// entry for the page
entry: "src/main.ts",
title: "TETHYS - Research Data Repository",
},
},
devServer: {
disableHostCheck: true,
},
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
SOLR_HOST: JSON.stringify(process.env.SOLR_HOST),
SOLR_CORE: JSON.stringify(process.env.SOLR_CORE),
}),
],
},
};