mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 18:56:18 +09:00
22 lines
671 B
JavaScript
22 lines
671 B
JavaScript
module.exports = {
|
|
/** build config */
|
|
outputDir: process.env.NODE_ENV === 'production'
|
|
? '../src/main/resources/templates' : 'dist', // html, ico 파일 저장
|
|
assetsDir: process.env.NODE_ENV === 'production'
|
|
? '../static' : '', // css, img, js 저장. outputDir에 대한 상대 경로
|
|
lintOnSave: false,
|
|
/**
|
|
* /api/** 요청은 backend 서버로 전달한다.
|
|
* 이 설정이 없으면 axios에서 baseURL 설정하고 backend에서는 cors 설정 해야한다.
|
|
*/
|
|
devServer: {
|
|
proxy: {
|
|
'^/api': {
|
|
target: 'http://localhost:7070',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
|
|
runtimeCompiler: true,
|
|
} |