diff --git a/apps/guard/next.config.js b/apps/guard/next.config.js index 3e72b8a34..a0ded5f60 100644 --- a/apps/guard/next.config.js +++ b/apps/guard/next.config.js @@ -5,9 +5,6 @@ const path = require('path'); const nextConfig = { typedRoutes: true, output: 'export', - typescript: { - ignoreBuildErrors: true, - }, staticPageGenerationTimeout: 600, env: { API_BASE_URL: process.env.API_BASE_URL, diff --git a/apps/watcher/next.config.js b/apps/watcher/next.config.js index c4825704f..39d408624 100644 --- a/apps/watcher/next.config.js +++ b/apps/watcher/next.config.js @@ -8,9 +8,6 @@ const nextConfig = { unoptimized: true, }, output: 'export', - typescript: { - ignoreBuildErrors: true, - }, staticPageGenerationTimeout: 600, env: { API_BASE_URL: process.env.API_BASE_URL, diff --git a/apps/watcher/src/app/App.tsx b/apps/watcher/src/app/App.tsx index 5aad49c13..89670c4b2 100644 --- a/apps/watcher/src/app/App.tsx +++ b/apps/watcher/src/app/App.tsx @@ -1,5 +1,6 @@ 'use client'; +import type { Route } from 'next'; import NextImage from 'next/image'; import NextLink from 'next/link'; import { usePathname, useRouter, useSearchParams } from 'next/navigation'; @@ -36,13 +37,13 @@ export const App = ({ children }: PropsWithChildren) => { , + Anchor: (props) => , Image: (props) => , }} router={{ pathname, search: searchParams.toString(), - push: (href: string) => router.push(href, { scroll: false }), + push: (href: string) => router.push(href as Route, { scroll: false }), }} >