File tree 2 files changed +2
-2
lines changed
stubs/inertia/resources/js
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { createInertiaApp } from '@inertiajs/vue3';
6
6
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers' ;
7
7
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m' ;
8
8
9
- const appName = window . document . getElementsByTagName ( 'title' ) [ 0 ] ?. innerText || 'Laravel' ;
9
+ const appName = import . meta . env . VITE_APP_NAME || 'Laravel' ;
10
10
11
11
createInertiaApp ( {
12
12
title : ( title ) => `${ title } - ${ appName } ` ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import createServer from '@inertiajs/vue3/server';
5
5
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers' ;
6
6
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m' ;
7
7
8
- const appName = 'Laravel' ;
8
+ const appName = import . meta . env . VITE_APP_NAME || 'Laravel' ;
9
9
10
10
createServer ( ( page ) =>
11
11
createInertiaApp ( {
You can’t perform that action at this time.
0 commit comments