Vue router 와 Express 연동을 위해서 connect-history-api-fallback 모듈 설치가 필요하다.
설치 방법은 아래 링크를 첨부합니다.
https://www.hanumoka.net/2018/11/13/vue-20181113-vue-how-to-make-vue-express-project/
Vue와 Express를 합쳐서 통합 프로젝트 만들기
들어가기이 글은 Vue 프로젝트와 Express 프로젝트를 연동하는 예제이다. Vue Express Node 통합 프로젝트 환경 만들기Vue를 프론트엔드로, Express를 백엔드로 개발할때 어떻게 프로젝트를 잡아야 할까
www.hanumoka.net
connect-history-api-fallback 에 대한 자세한 설명은 GitHub에 되어 있어, 해당 링크도 첨부합니다.
자세한 설명 및 정보를 얻고자 하시는 분은 아래 링크를 확인바랍니다.
https://github.com/bripkens/connect-history-api-fallback
GitHub - bripkens/connect-history-api-fallback: Fallback to index.html for applications that are using the HTML 5 history API
Fallback to index.html for applications that are using the HTML 5 history API - GitHub - bripkens/connect-history-api-fallback: Fallback to index.html for applications that are using the HTML 5 his...
github.com
connect-history-api-fallback 에 대한 추가 주의 사항!
Express.js와 Vue.js로 만드는 SPA(Single Page Application) Part 2.
이전 Part 1에서 우리는 Express와 Vue를 연동한 개발 환경을 구축했다. Part 2에서는 Express와 MongoDB를 이용해 REST API 서버를 구축하는 과정을 다룬다. Mongoose 설치 Mongoose란 MongoDB ODM(Object Docume..
yorr.tistory.com
해당 링크에서 connect-history-api-fallback 를 찾기를 통해 검색하면 주의사항이 나와있다.
설명의 경우 connect-history-api-fallback 의 위치가 중요하므로 해당 connect-history-api-fallback 모듈 설치 후 적용 시, 주의가 필요한 부분으로 판단된다.