diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d2fe8bf..b3f3cd5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,8 +29,9 @@ jobs: run: | rm -rf .next .turbo node_modules || true pnpm install --frozen-lockfile - - name: ๐Ÿงช Parallel Checks + - name: ๐Ÿงช QA Checks + env: + NODE_OPTIONS: "--max-old-space-size=4096" run: | - pnpm lint & - pnpm build & - wait + pnpm lint + pnpm build diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dc88ba4..348bb16 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -167,12 +167,16 @@ jobs: pnpm install --no-frozen-lockfile - name: ๐Ÿงช QA Checks if: github.event.inputs.skip_checks != 'true' + env: + NODE_OPTIONS: "--max-old-space-size=4096" run: | pnpm lint pnpm exec tsc --noEmit pnpm test run - name: ๐Ÿ—๏ธ Build Test if: github.event.inputs.skip_checks != 'true' + env: + NODE_OPTIONS: "--max-old-space-size=4096" run: pnpm build # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ diff --git a/Dockerfile b/Dockerfile index 61887af..7346cb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ ENV UMAMI_API_ENDPOINT=$UMAMI_API_ENDPOINT ENV NEXT_PUBLIC_UMAMI_WEBSITE_ID=$NEXT_PUBLIC_UMAMI_WEBSITE_ID ENV SKIP_RUNTIME_ENV_VALIDATION=true ENV CI=true +ENV NODE_OPTIONS="--max-old-space-size=4096" # Enable pnpm RUN corepack enable && corepack prepare pnpm@10.3.0 --activate diff --git a/app/[locale]/agb/page.tsx b/app/[locale]/agb/page.tsx index ad4e8ea..380f1ed 100644 --- a/app/[locale]/agb/page.tsx +++ b/app/[locale]/agb/page.tsx @@ -14,7 +14,7 @@ export default async function Page({ params }: PageProps) { try { const mdx = await import(`@/content/${locale}/avb.mdx`); Content = mdx.default; - } catch (e) { + } catch { notFound(); } diff --git a/app/[locale]/datenschutz/page.tsx b/app/[locale]/datenschutz/page.tsx index 5d118ed..bf371fe 100644 --- a/app/[locale]/datenschutz/page.tsx +++ b/app/[locale]/datenschutz/page.tsx @@ -13,7 +13,7 @@ export default async function Page({ params }: PageProps) { try { const mdx = await import(`@/content/${locale}/datenschutz.mdx`); Content = mdx.default; - } catch (e) { + } catch { notFound(); } diff --git a/app/[locale]/impressum/page.tsx b/app/[locale]/impressum/page.tsx index 764e2fe..9ef3490 100644 --- a/app/[locale]/impressum/page.tsx +++ b/app/[locale]/impressum/page.tsx @@ -13,7 +13,7 @@ export default async function Page({ params }: PageProps) { try { const mdx = await import(`@/content/${locale}/impressum.mdx`); Content = mdx.default; - } catch (e) { + } catch { notFound(); } diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index ff2540b..6424fd1 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -1,6 +1,6 @@ import React from "react"; import { Metadata } from "next"; -import { notFound } from "next/navigation"; + import HomeContent from "@/components/HomeContent"; export const metadata: Metadata = { @@ -21,7 +21,7 @@ export default async function Page({ params }: PageProps) { try { const mdx = await import(`@/content/${locale}/index.mdx`); Content = mdx.default; - } catch (e) { + } catch { // Fallback if MDX is not yet created for this locale return ; } diff --git a/app/[locale]/ueber-uns/page.tsx b/app/[locale]/ueber-uns/page.tsx index 7611b70..127d0c4 100644 --- a/app/[locale]/ueber-uns/page.tsx +++ b/app/[locale]/ueber-uns/page.tsx @@ -20,7 +20,7 @@ export default async function Page({ params }: PageProps) { try { const mdx = await import(`@/content/${locale}/about.mdx`); Content = mdx.default; - } catch (e) { + } catch { notFound(); }