Vue.js 프로젝트 gh-pages deploy 할 때 repository 경로 못 찾는 경우

뭔가 설정을 빼먹은 것 같은데,,

생성된 dist 폴더의 index.html에 있는 link href 주소에 /repository 이름/경로를 맨 앞에 추가해주니 잘 찾아간다,,

index.html 👇👇👇

<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="icon" href="/favicon.ico">
  <title>covid-dashboard-vue</title>
  <link href="/covid-dashboard-vue/css/app.e0cbca64.css" rel="preload" as="style">
  <link href="/covid-dashboard-vue/js/app.84285ec7.js" rel="preload" as="script">
  <link href="/covid-dashboard-vue/js/chunk-vendors.53c4bfd9.js" rel="preload" as="script">
  <link href="/covid-dashboard-vue/css/app.e0cbca64.css" rel="stylesheet">
</head>

<body><noscript><strong>We're sorry but covid-dashboard-vue doesn't work properly without JavaScript enabled. Please
      enable it to continue.</strong></noscript>
  <div id="app"></div>
  <script src="/covid-dashboard-vue/js/chunk-vendors.53c4bfd9.js"></script>
  <script src="/covid-dashboard-vue/js/app.84285ec7.js"></script>
</body>

</html>

좋은 웹페이지 즐겨찾기