Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
VITE_API_BASE_URL=
VITE_KAKAO_MAP_API_KEY=
VITE_HEADER_TOKEN=
VITE_KAKAO_MAP_API_KEY=
2 changes: 1 addition & 1 deletion src/shared/types/api/http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Cookies from 'js-cookie';
import useAuthStore from '../../../app/provider/authStore';

export const axiosClient = axios.create({
baseURL: 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080/api/v1',
baseURL: 'http://api.gotogether.io.kr:8080/api/v1',
timeout: 3000,
withCredentials: true,
headers: {
Expand Down
6 changes: 3 additions & 3 deletions src/widgets/main/ui/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ interface LoginModalProps {

const LoginModal = ({ onClose }: LoginModalProps) => {
const kakaoLogin = () => {
window.location.href = 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/kakao';
window.location.href = `${import.meta.env.VITE_API_BASE_URL}/oauth2/authorization/kakao`;
};
const gooleLogin = () => {
window.location.href = 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/google';
}
window.location.href = `${import.meta.env.VITE_API_BASE_URL}/oauth2/authorization/google`;
};
return (
<motion.div
initial={{ y: '-100vh', opacity: 0 }}
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import autoprefixer from 'autoprefixer';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd());

const API_BASE_URL = `${env.VITE_API_BASE_URL ?? 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080'}`;
const API_BASE_URL = `${env.VITE_API_BASE_URL ?? 'http://api.gotogether.io.kr:8080'}`;

return {
plugins: [react()],
Expand All @@ -18,6 +18,8 @@ export default defineConfig(({ mode }) => {
},
},
server: {
host: true,
allowedHosts: ['gotogether.io.kr'],
proxy: {
'/api/v1': {
target: API_BASE_URL,
Expand Down
Loading