fix: restore route('home'), remove dashboard Blade route, load iconify in SPA
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'iconify-icon'
|
||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router/index.js'
|
import router from './router/index.js'
|
||||||
|
|||||||
@@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::middleware(['auth', 'verified'])->group(function (): void {
|
|
||||||
Route::view('dashboard', 'dashboard')->name('dashboard');
|
|
||||||
});
|
|
||||||
|
|
||||||
require __DIR__.'/settings.php';
|
require __DIR__.'/settings.php';
|
||||||
|
|
||||||
// SPA catch-all — must be last
|
// SPA catch-all — must be last
|
||||||
Route::get('/{any}', fn () => view('app'))->where('any', '.*')->name('spa');
|
Route::get('/{any}', fn () => view('app'))->where('any', '.*')->name('home');
|
||||||
|
|||||||
@@ -10,7 +10,13 @@ export default defineConfig({
|
|||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
vue(),
|
vue({
|
||||||
|
template: {
|
||||||
|
compilerOptions: {
|
||||||
|
isCustomElement: tag => tag === 'iconify-icon',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
cors: true,
|
cors: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user