diff --git a/frontend/next.config.js b/frontend/next.config.js index 2cf5a5de7..28045b985 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -95,7 +95,7 @@ const rawNextConfig = { ]) }, output: 'standalone', - swcMinify: false, //Otherwise emoji picker is minified incorrectly + swcMinify: true, experimental: { outputFileTracingRoot: path.join(__dirname, '../') }, diff --git a/frontend/src/app/(editor)/global-error.tsx b/frontend/src/app/(editor)/global-error.tsx deleted file mode 100644 index dd8ee431f..000000000 --- a/frontend/src/app/(editor)/global-error.tsx +++ /dev/null @@ -1,42 +0,0 @@ -'use client' - -/* - * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) - * - * SPDX-License-Identifier: AGPL-3.0-only - */ -import { UiIcon } from '../../components/common/icons/ui-icon' -import { ExternalLink } from '../../components/common/links/external-link' -import links from '../../links.json' -import React, { useEffect } from 'react' -import { Button, Container } from 'react-bootstrap' -import { ArrowRepeat as IconArrowRepeat } from 'react-bootstrap-icons' - -export default function Error({ error, reset }: { error: Error; reset: () => void }) { - useEffect(() => { - console.error(error) - }, [error]) - - return ( - - - -
-

An unknown error occurred

-

- Don't worry, this happens sometimes. If this is the first time you see this page then try reloading - the app. -

- If you can reproduce this error, then we would be glad if you{' '} - or{' '} - - -
-
- - - ) -} diff --git a/frontend/src/app/(render)/global-error.tsx b/frontend/src/app/(render)/global-error.tsx deleted file mode 100644 index 4a1dfec11..000000000 --- a/frontend/src/app/(render)/global-error.tsx +++ /dev/null @@ -1,42 +0,0 @@ -'use client' - -/* - * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) - * - * SPDX-License-Identifier: AGPL-3.0-only - */ -import { UiIcon } from '../../components/common/icons/ui-icon' -import { ExternalLink } from '../../components/common/links/external-link' -import links from '../../links.json' -import React, { useEffect } from 'react' -import { Button, Container } from 'react-bootstrap' -import { ArrowRepeat as IconArrowRepeat } from 'react-bootstrap-icons' - -export default function Error({ error, reset }: { error: Error; reset: () => void }) { - useEffect(() => { - console.error(error) - }, [error]) - - return ( - - - -
-

An unknown error occurred

-

- Don't worry, this happens sometimes. If this is the first time you see this page then try reloading - the app. -

- If you can reproduce this error, then we would be glad if you - - or - -
-
- - - ) -}