Skip to content

A self-hosted media server and file management system

add base url for vue router in vite

aminnausincaa7fd8a5537
diff --git a/.env.example b/.env.example
index 7571a60e..3cad20b7 100644
--- a/.env.example
+++ b/.env.example
@@ -59,6 +59,7 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
+VITE_BASE_URL="${APP_URL}"
COOL_ZCOMMAND=git branch --merged | %{$_.trim()} | ?{$_ -notmatch 'dev' -and $_ -notmatch 'main'} | %{git branch -d $_}
\ No newline at end of file
diff --git a/resources/js/router/index.js b/resources/js/router/index.js
index cc1ffca6..e6ad332e 100644
--- a/resources/js/router/index.js
+++ b/resources/js/router/index.js
@@ -6,7 +6,7 @@ import LoginView from "../views/LoginView.vue";
import Layout from "../components/layout/Layout.vue";
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHistory(import.meta.env.VITE_BASE_URL),
routes: [
{
path:'/',