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
2 changes: 1 addition & 1 deletion src/app/api/signin/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function POST(request) {

// gdgocinha.site/auth/login으로 요청 전달
const response = await axios.post(
`${ORIGINAL_AUTH_URL}/login`,
`${ORIGINAL_AUTH_URL}/auth/login`,
{ email, password },
{
headers: { 'Content-Type': 'application/json' },
Expand Down
3 changes: 2 additions & 1 deletion src/app/auth/signin/custom/CustomAuthApi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client';
import axios from 'axios';
import process from "next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss";

// 기존 직접 요청 URL
// const CUSTOM_AUTH_URL = process.env.NEXT_PUBLIC_BASE_API_URL;
Expand All @@ -10,7 +11,7 @@ const PROXY_AUTH_URL = '/api/signin';
export const login = async (email, password) => {
try {
const response = await axios.post(
PROXY_AUTH_URL,
PROXY_AUTH_URL,
{ email, password },
{
headers: { 'Content-Type': 'application/json' },
Expand Down