Преглед изворни кода

fix(deploy): set router base via `import.meta.env.BASE_URL` for subpath deployment

Zander Hawke пре 1 недеља
родитељ
комит
8c35929683
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/dev/src/main.ts

+ 1 - 1
apps/dev/src/main.ts

@@ -9,7 +9,7 @@ const routes = [{ path: "/", component: EditorView }]
 
 const app = createApp(App)
 const router = createRouter({
-  history: createWebHistory(),
+  history: createWebHistory(import.meta.env.BASE_URL),
   routes,
 })