mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-28 15:44:55 +00:00
Generated by Spark: Add custom 404 page design with helpful navigation links
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user