cloud-admin-lite
Version:
base on vue cloud-ui.vusion template
25 lines (23 loc) • 720 B
JavaScript
const host = 'localhost';
const path = require('path');
module.exports = function (port) {
return {
host,
port,
open: true,
disableHostCheck: true,
contentBase: path.join(__dirname),
watchContentBase: false, // dev slow on Windows
clientLogLevel: 'info',
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
},
proxy: {
'^/api/': {
target: 'http://target.com', // Add your proxy target
},
},
};
};