Files
video/opentogethertube/opentogethertube/vue.config.js
2021-09-14 06:30:17 -06:00

29 lines
631 B
JavaScript

const path = require('path');
require('dotenv').config({ path: path.resolve(process.cwd(), `env/${process.env.NODE_ENV}.env`) });
module.exports = {
devServer: {
proxy: {
"^/api": {
target: "http://localhost:3000",
ws: true,
},
},
},
transpileDependencies: ["vuetify"],
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
},
},
configureWebpack: {
plugins: [],
},
chainWebpack: (config) => {
config.plugin('define').tap(definitions => {
definitions[0]['process.env']['GOOGLE_DRIVE_API_KEY'] = JSON.stringify(process.env.GOOGLE_DRIVE_API_KEY);
return definitions;
});
},
};