File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 2929 - name : Build with npm
3030 run : npm run build-only
3131
32+ - name : Create nginxfile.conf
33+ run : touch ./nginxfile.conf
34+ - run : echo "${{ secrets.NGINX_FILE_CONF }}" > ./nginxfile.conf
35+
3236 - name : Create nginx.conf
3337 run : touch ./nginx.conf
3438 - run : echo "${{ secrets.NGINX_CONF }}" > ./nginx.conf
Original file line number Diff line number Diff line change 11FROM nginx
2+ COPY nginxfile.conf /etc/nginx/nginx.conf
23COPY nginx.conf /etc/nginx/conf.d/default.conf
34COPY dist/. /usr/share/nginx/html/
45CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change 11import { axiosInstance } from '@/utils/axios'
22import Cookies from 'js-cookie'
3- import type { loginDataTypes } from '@/types/auth'
3+
44import { useMemberStore } from '@/stores/member'
55
66export const postPasswordEmailSend = async ( name : string , email : string ) => {
@@ -17,8 +17,10 @@ export const postPasswordCheck = async (password: string) => {
1717 return response . data
1818}
1919
20- export const postLogin = async ( loginData : loginDataTypes ) => {
21- const response = await axiosInstance . post ( '/api/auths/login' , loginData )
20+ export const postLogin = async ( nickName : string , password : string ) => {
21+ const response = await axiosInstance . post ( `/api/auths/login?nickname=${ nickName } ` , {
22+ password : password
23+ } )
2224 Cookies . set ( 'accessToken' , response . data . accessToken , {
2325 path : '/' ,
2426 sameSite : 'strict'
Original file line number Diff line number Diff line change @@ -76,11 +76,8 @@ const closeModal = () => {
7676
7777const handleLogin = async () => {
7878 try {
79- const loginData = {
80- nickname: nickname .value ,
81- password: password .value
82- }
83- const res = await postLogin (loginData )
79+ const name = nickname .value .toString ()
80+ const res = await postLogin (name , password .value )
8481 const role = await memberStore .updateMemberInfoWithToken ()
8582
8683 if (! Cookies .get (' refreshToken' )) {
You can’t perform that action at this time.
0 commit comments