forked from ProjectDevelopment3/Croffle-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
37 lines (37 loc) · 906 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
// scss 변수를 전역으로 등록
css: {
loaderOptions: {
scss: {
additionalData: `@import "@/assets/scss/variables.scss";`,
},
},
},
// CORS 에러 해결을 위한 프록시 설정
devServer: {
proxy: {
// "/api": {
// target: "192.168.0.17:8080/",
// changeOrigin: true,
// },
"/v1": {
target: "https://openapi.naver.com/",
changeOrigin: true,
},
"/v2": {
target: "https://api.ipify.org?format=json/",
changeOrigin: true,
},
"/v3": {
target: "https://geolocation.apigw.ntruss.com",
changeOrigin: true,
},
"/v4": {
target: "https://openapi.naver.com/v1/nid/me",
changeOrigin: true,
},
},
},
});