/*
 * @Author: PoJun
 * @Date: 2023-05-14 16:21:33
 * @LastEditors: PoJun
 * @LastEditTime: 2023-10-06 16:07:38
 * @Message: Nothing
 */
module.exports = {
    devServer: {
        open: true,
        proxy: {
            "/api": {
                target: process.env.VUE_APP_BASE_API,
                changeOrigin: true,
                pathRewrite: { "^/api": "" },
            },
        },
    },
    configureWebpack: () => {
        if (process.env.NODE_ENV === "production") {
            return {
                plugins: [],
            };
        }
    },
    chainWebpack: () => {},
};
