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:
Sergey Mankovsky
2026-02-27 17:18:03 +01:00
committed by GitHub
parent 7f9ce7f13a
commit f6cc03286b
20 changed files with 1077 additions and 916 deletions

View File

@@ -1,3 +1,5 @@
"use client";
import React from "react";
import { Box, Stack, Link, Heading } from "@chakra-ui/react";
import NextLink from "next/link";

View File

@@ -1,3 +1,5 @@
"use client";
import React, { useState } from "react";
import {
Box,

View File

@@ -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") ? (
<>
&nbsp;·&nbsp;
<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") ? (
<>
&nbsp;·&nbsp;
<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") ? (
<>
&nbsp;·&nbsp;
<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>
&nbsp;·&nbsp;
<UserInfo />
</>