2022-11-03 21:26:58 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const {merge} = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common.js');
|
|
|
|
|
|
|
|
|
|
|
|
const dev = {
|
|
|
|
mode: 'development',
|
|
|
|
devServer: {
|
|
|
|
hot: "only",
|
|
|
|
client: {
|
|
|
|
logging: "info"
|
|
|
|
},
|
|
|
|
static: {directory: path.join(__dirname, "../src/assets")},
|
|
|
|
devMiddleware: {
|
|
|
|
publicPath: "/",
|
|
|
|
stats: "errors-only"
|
|
|
|
},
|
|
|
|
historyApiFallback: true,
|
2024-06-10 09:09:31 +00:00
|
|
|
proxy: {
|
|
|
|
'/backend': {
|
|
|
|
target: 'https://nixos-search-7-1733963800.us-east-1.bonsaisearch.net/',
|
|
|
|
pathRewrite: {'^/backend' : ''},
|
|
|
|
changeOrigin: true
|
|
|
|
},
|
|
|
|
},
|
2022-11-03 21:26:58 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = env => {
|
|
|
|
const withDebug = !env.nodebug;
|
|
|
|
return merge(common(withDebug), dev);
|
|
|
|
}
|