diff --git a/resources/js/app.js b/resources/js/app.js index d3035f4..69bbf48 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -7,7 +7,8 @@ import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers"; import { createApp, h } from "vue"; import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m"; -const appName = window.document.getElementsByTagName("title")[0]?.innerText || "Laravel"; +const appName = + window.document.getElementsByTagName("title")[0]?.innerText || import.meta.env.VITE_APP_NAME || "Laravel"; createInertiaApp({ title: (title) => {