Commit 76c5e120 authored by JunHyung An's avatar JunHyung An
Browse files

Hard coding base path

parent 4f2ff191
Loading
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -3,13 +3,13 @@ import { createWebHistory, createRouter } from 'vue-router';

import NotFound from './views/NotFound';

function publicPath () {
  if (process.env.CI_PAGES_URL) {
    return new URL(process.env.CI_PAGES_URL).pathname
  } else {
    return '/'
  }
}
// function publicPath () {
//   if (process.env.CI_PAGES_URL) {
//     return new URL(process.env.CI_PAGES_URL).pathname
//   } else {
//     return '/'
//   }
// }

const routes = [
  {
@@ -41,7 +41,7 @@ const routes = [
// export default router;

export const router = createRouter({
  history: createWebHistory(publicPath()),
  base: publicPath(),
  history: createWebHistory("/capstone-design/02/vue-router/"),
  base: "/capstone-design/02/vue-router/",
  routes,
});
 No newline at end of file