Skip to content

Commit

Permalink
Merge pull request #50 from studio-recoding/feat-oauth-localhost
Browse files Browse the repository at this point in the history
[⚠️!HOTFIX] 리퀘스트 서버 네임 설정
  • Loading branch information
JeonHaeseung authored Apr 29, 2024
2 parents 6586af4 + 6da12f1 commit 16774a6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import org.springframework.web.util.UriComponentsBuilder;

import java.io.IOException;
Expand Down Expand Up @@ -46,12 +45,12 @@ private String setRedirectUrl(String url) {
/* 백엔드 개발 환경
if (url.equals("localhost")) {
redirect_url = "http://localhost:8080/oauth/google/success";
log.info("OAuth in localhost");
log.info("OAuth in localhost"); //api.nessplanning.com
}
*/
/* 리엑트 개발 환경 */
if (url.equals("localhost")) {
log.info("localhost");
/* 백엔드 프로덕션 환경 */
if (url.equals("api.nessplanning.com")) {
log.info("api.nessplanning.com");
redirect_url = "http://localhost:3000/oauth/google/success/ing";
}

Expand Down

0 comments on commit 16774a6

Please sign in to comment.