Generated by Spark: Add custom 404 page design with helpful navigation links

This commit is contained in:
2026-01-17 13:02:39 +00:00
committed by GitHub
parent 042919d774
commit 458a6e7c45
3 changed files with 118 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { lazy, Suspense } from 'react'
import { RouteObject, Navigate } from 'react-router-dom'
import { LoadingFallback } from '@/components/molecules'
import { NotFoundPage } from '@/components/NotFoundPage'
import { getEnabledPages, resolveProps } from '@/config/page-loader'
import { ComponentRegistry } from '@/lib/component-registry'
import { FeatureToggles } from '@/types/project'
@@ -140,7 +141,7 @@ export function createRoutes(
routes.push({
path: '*',
element: <Navigate to="/" replace />
element: <NotFoundPage />
})
console.log('[ROUTES] ✅ Routes created:', routes.length, 'routes')