Skip to content

Commit 0c549e3

Browse files
committed
fix: use website-editor as base url
1 parent 439704f commit 0c549e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/general/router.component.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { EditorPage } from "@/pages/editor.page";
22
import { OverviewPage } from "@/pages/overview.page";
33
import { createRef } from "react";
44
import {
5+
Navigate,
56
Outlet,
67
RouteObject,
78
RouterProvider,
@@ -22,6 +23,10 @@ export const pageRoutes = [
2223
export const routes: RouteObject[] = [
2324
{
2425
path: "/",
26+
element: <Navigate to="/website-editor" replace />,
27+
},
28+
{
29+
path: "/website-editor",
2530
element: <Outlet />,
2631
children: pageRoutes,
2732
},

0 commit comments

Comments
 (0)