Jeonghyun109 / NAVER-FE-SSR

repository for KAIST-FE-SSR
1 stars 2 forks source link

Proxy 기능 추가하기 #13

Closed billopark closed 2 years ago

billopark commented 2 years ago

http://localhost:3000/proxy/a/b/c 로 접속하면 http://localhost:4000/a/b/c 의 값을 가져옴 js/css/image 같은 asset들을 가져오기 위해서 필요합니다.

itemgiver commented 2 years ago

app.use("/static", proxy(renderServerAddress)) 의 코드가 app.use("/proxy", proxy(renderServerAddress)) 로 바뀌었는데 둘의 차이점이 있나요?

itemgiver commented 2 years ago

http://localhost:3000/proxy/a/b/c에서 proxy를 뺀 http://localhost:3000/a/b/c 주소는 안 되는 건가요?

billopark commented 2 years ago
itemgiver commented 2 years ago

네, 제 생각에는 proxy넣고 빼는건 사소하니까 일단 commit해도 괜찮을 것 같습니다.