From 6224dedd450fe64141e452280a386f66f8f26388 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Fri, 10 Apr 2026 18:14:58 +0100 Subject: [PATCH] fix: restore route('home'), remove dashboard Blade route, load iconify in SPA Co-Authored-By: Claude Sonnet 4.6 --- resources/js/app.js | 1 + routes/web.php | 6 +----- vite.config.js | 8 +++++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 6878abd..1e61e4b 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,3 +1,4 @@ +import 'iconify-icon' import { createApp } from 'vue' import App from './App.vue' import router from './router/index.js' diff --git a/routes/web.php b/routes/web.php index f30ae12..2f7d3b9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,11 +2,7 @@ use Illuminate\Support\Facades\Route; -Route::middleware(['auth', 'verified'])->group(function (): void { - Route::view('dashboard', 'dashboard')->name('dashboard'); -}); - require __DIR__.'/settings.php'; // 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'); diff --git a/vite.config.js b/vite.config.js index 7dac6af..3250edd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,7 +10,13 @@ export default defineConfig({ refresh: true, }), tailwindcss(), - vue(), + vue({ + template: { + compilerOptions: { + isCustomElement: tag => tag === 'iconify-icon', + }, + }, + }), ], server: { cors: true,