Skip to content

Commit 0954fd1

Browse files
committed
feat:배포용으로 변경
1 parent da807be commit 0954fd1

File tree

8 files changed

+22
-30
lines changed

8 files changed

+22
-30
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_APP_API_URL="http://moa-moa.kr:8080/"
1+
VUE_APP_API_URL="https://moa-moa.kr:8080/"

.env.development

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_APP_API_URL="http://moa-moa.kr:8080/"
1+
VUE_APP_API_URL="https://moa-moa.kr:8080/"

.env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_APP_API_URL="http://moa-moa.kr:8080/"
1+
VUE_APP_API_URL="https://moa-moa.kr:8080/"

src/api/index.js

+7-15
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ function create(url, options) {
55
return instance;
66
}
77

8-
// export const auth = create(`${process.env.VUE_APP_API_URL}api/auth`);
9-
// export const user = create(`${process.env.VUE_APP_API_URL}api/user`);
10-
// export const post = create(`${process.env.VUE_APP_API_URL}api/post/`);
11-
// export const room = create(`${process.env.VUE_APP_API_URL}api/study/`);
12-
// export const join = create(`${process.env.VUE_APP_API_URL}api/join/`);
13-
// export const reply = create(`${process.env.VUE_APP_API_URL}api/reply/`);
14-
// export const mate = create(`${process.env.VUE_APP_API_URL}/api/mate/`);
15-
16-
export const auth = create(`/api/auth`);
17-
export const user = create(`/api/user`);
18-
export const post = create(`/api/post/`);
19-
export const room = create(`/api/study/`);
20-
export const join = create(`/api/join/`);
21-
export const reply = create(`/api/reply/`);
22-
export const mate = create(`/api/mate/`);
8+
export const auth = create(`${process.env.VUE_APP_API_URL}api/auth`);
9+
export const user = create(`${process.env.VUE_APP_API_URL}api/user`);
10+
export const post = create(`${process.env.VUE_APP_API_URL}api/post/`);
11+
export const room = create(`${process.env.VUE_APP_API_URL}api/study/`);
12+
export const join = create(`${process.env.VUE_APP_API_URL}api/join/`);
13+
export const reply = create(`${process.env.VUE_APP_API_URL}api/reply/`);
14+
export const mate = create(`${process.env.VUE_APP_API_URL}api/mate/`);

src/components/views/auth/KakaoLoginBtn.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default {
1111
methods: {
1212
kakaoLogin() {
1313
const params = {
14-
redirectUri: 'http://localhost:3000',
15-
// redirectUri: 'https://moa-moa.kr',
14+
// redirectUri: 'http://localhost:3000',
15+
redirectUri: 'https://moa-moa.kr',
1616
};
1717
window.Kakao.Auth.authorize(params);
1818
},

src/components/views/auth/KakaoSignupBtn.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default {
1010
methods: {
1111
kakaoLogin() {
1212
const params = {
13-
redirectUri: 'http://localhost:3000',
14-
// redirectUri: 'https://moa-moa.kr',
13+
// redirectUri: 'http://localhost:3000',
14+
redirectUri: 'https://moa-moa.kr',
1515
};
1616
window.Kakao.Auth.authorize(params);
1717
},

src/components/views/auth/login.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const getKakaoToken = async (code) => {
1010
const data = {
1111
grant_type: 'authorization_code',
1212
client_id: 'a75b5aef214abdc69ec5214ce6706d98',
13-
redirectUri: 'http://localhost:3000',
14-
// redirectUri: 'https://moa-moa.kr',
13+
// redirectUri: 'http://localhost:3000',
14+
redirectUri: 'https://moa-moa.kr',
1515
code: code,
1616
};
1717
const queryString = Object.keys(data)

vue.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
devServer: {
33
overlay: false,
44
port: 3000,
5-
proxy: {
6-
'/api': {
7-
target: process.env.VUE_APP_API_URL,
8-
changeOrigin: true,
9-
},
10-
},
5+
// proxy: {
6+
// '/api': {
7+
// target: process.env.VUE_APP_API_URL,
8+
// changeOrigin: true,
9+
// },
10+
// },
1111
},
1212
};

0 commit comments

Comments
 (0)