mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-27 15:45:19 +00:00
fix: upgrade to nextjs 16 (#888)
* Upgrade to nextjs 16 * Update sentry config * Force dynamic for health route * Upgrade eslint config * Upgrade jest * Move types to dev dependencies * Remove pages from tailwind config * Replace img with next image
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Container, Flex, Link } from "@chakra-ui/react";
|
||||
import { Container, Flex } from "@chakra-ui/react";
|
||||
import { featureEnabled } from "../lib/features";
|
||||
import NextLink from "next/link";
|
||||
import Image from "next/image";
|
||||
@@ -30,7 +30,7 @@ export default async function AppLayout({
|
||||
mt="1"
|
||||
>
|
||||
{/* Logo on the left */}
|
||||
<Link as={NextLink} href="/" className="flex">
|
||||
<NextLink href="/" className="flex">
|
||||
<Image
|
||||
src="/reach.svg"
|
||||
width={32}
|
||||
@@ -46,22 +46,18 @@ export default async function AppLayout({
|
||||
Capture the signal, not the noise
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
</NextLink>
|
||||
<div>
|
||||
{/* Text link on the right */}
|
||||
<Link
|
||||
as={NextLink}
|
||||
href={RECORD_A_MEETING_URL}
|
||||
className="font-light px-2"
|
||||
>
|
||||
<NextLink href={RECORD_A_MEETING_URL} className="font-light px-2">
|
||||
Create
|
||||
</Link>
|
||||
</NextLink>
|
||||
{featureEnabled("browse") ? (
|
||||
<>
|
||||
·
|
||||
<Link href="/browse" as={NextLink} className="font-light px-2">
|
||||
<NextLink href="/browse" className="font-light px-2">
|
||||
Browse
|
||||
</Link>
|
||||
</NextLink>
|
||||
</>
|
||||
) : (
|
||||
<></>
|
||||
@@ -69,9 +65,9 @@ export default async function AppLayout({
|
||||
{featureEnabled("rooms") ? (
|
||||
<>
|
||||
·
|
||||
<Link href="/rooms" as={NextLink} className="font-light px-2">
|
||||
<NextLink href="/rooms" className="font-light px-2">
|
||||
Rooms
|
||||
</Link>
|
||||
</NextLink>
|
||||
</>
|
||||
) : (
|
||||
<></>
|
||||
@@ -79,13 +75,9 @@ export default async function AppLayout({
|
||||
{featureEnabled("requireLogin") ? (
|
||||
<>
|
||||
·
|
||||
<Link
|
||||
href="/settings/api-keys"
|
||||
as={NextLink}
|
||||
className="font-light px-2"
|
||||
>
|
||||
<NextLink href="/settings/api-keys" className="font-light px-2">
|
||||
Settings
|
||||
</Link>
|
||||
</NextLink>
|
||||
·
|
||||
<UserInfo />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user