feat(builder): Move /monitor to / (#7769)

- Move `monitor/page.tsx` to `page.tsx`
- Remove redirect from `/` to `/build`
- Set temporary redirect from `/monitor` to `/` to prevent breaking UX (may be removed after a grace period, e.g. 2024-09-01)
This commit is contained in:
Reinier van der Leer
2024-08-08 16:07:12 +02:00
committed by GitHub
parent c577d04692
commit bf10df612e
3 changed files with 4 additions and 4 deletions

View File

@@ -13,8 +13,8 @@ const nextConfig = {
async redirects() {
return [
{
source: "/",
destination: "/build",
source: "/monitor", // FIXME: Remove after 2024-09-01
destination: "/",
permanent: false,
},
];

View File

@@ -37,7 +37,7 @@ export async function NavBar() {
<SheetContent side="left">
<nav className="grid gap-6 text-lg font-medium">
<Link
href="/monitor"
href="/"
className="text-muted-foreground hover:text-foreground flex flex-row gap-2 "
>
<IconSquareActivity /> Monitor
@@ -59,7 +59,7 @@ export async function NavBar() {
</Sheet>
<nav className="hidden md:flex md:flex-row md:items-center md:gap-5 lg:gap-6">
<Link
href="/monitor"
href="/"
className="text-muted-foreground hover:text-foreground flex flex-row gap-2 items-center"
>
<IconSquareActivity /> Monitor