From 498f8279f9a0cf404cab564c717b1890536342b9 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 25 Jul 2024 15:35:47 +0200 Subject: [PATCH] fix(changelog): Put changelog back under `/changelog` (#10847) --- apps/changelog/next.config.mjs | 10 ++++++++++ .../%5Fadmin/[id]/edit/page.tsx | 0 .../{(changelog) => changelog}/%5Fadmin/confirm.tsx | 0 .../%5Fadmin/create/page.tsx | 0 .../{(changelog) => changelog}/%5Fadmin/layout.tsx | 0 .../{(changelog) => changelog}/%5Fadmin/loading.tsx | 0 .../{(changelog) => changelog}/%5Fadmin/page.tsx | 0 .../%5Fadmin/upload/route.tsx | 0 .../{(changelog) => changelog}/[slug]/loading.tsx | 0 .../app/{(changelog) => changelog}/[slug]/page.tsx | 0 .../src/app/{(changelog) => changelog}/error.tsx | 0 .../{(changelog) => changelog}/feed.xml/route.ts | 0 apps/changelog/src/app/changelog/globals.css | 0 .../src/app/{(changelog) => changelog}/header.tsx | 0 .../src/app/{(changelog) => changelog}/layout.tsx | 0 .../src/app/{(changelog) => changelog}/loading.tsx | 0 .../app/{(changelog) => changelog}/not-found.tsx | 0 .../src/app/{(changelog) => changelog}/page.tsx | 0 .../src/client/components/articleFooter/index.tsx | 8 +++++--- .../client/components/articleFooter}/squiggle.png | Bin .../components/articleFooter/styles.module.css | 5 ----- 21 files changed, 15 insertions(+), 8 deletions(-) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/[id]/edit/page.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/confirm.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/create/page.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/layout.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/loading.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/page.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/%5Fadmin/upload/route.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/[slug]/loading.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/[slug]/page.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/error.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/feed.xml/route.ts (100%) create mode 100644 apps/changelog/src/app/changelog/globals.css rename apps/changelog/src/app/{(changelog) => changelog}/header.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/layout.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/loading.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/not-found.tsx (100%) rename apps/changelog/src/app/{(changelog) => changelog}/page.tsx (100%) rename apps/changelog/{public/img => src/client/components/articleFooter}/squiggle.png (100%) delete mode 100644 apps/changelog/src/client/components/articleFooter/styles.module.css diff --git a/apps/changelog/next.config.mjs b/apps/changelog/next.config.mjs index 0abb2b5037d1a..9cc71c9c7de1b 100644 --- a/apps/changelog/next.config.mjs +++ b/apps/changelog/next.config.mjs @@ -1,11 +1,21 @@ import {withSentryConfig} from '@sentry/nextjs'; +/** @type {import('next').NextConfig} */ const nextConfig = { trailingSlash: true, eslint: { ignoreDuringBuilds: true, }, transpilePackages: ['next-mdx-remote'], + async redirects() { + return [ + { + source: '/', + destination: '/changelog', + permanent: true, + }, + ]; + }, }; export default withSentryConfig(nextConfig, { diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/[id]/edit/page.tsx b/apps/changelog/src/app/changelog/%5Fadmin/[id]/edit/page.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/[id]/edit/page.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/[id]/edit/page.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/confirm.tsx b/apps/changelog/src/app/changelog/%5Fadmin/confirm.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/confirm.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/confirm.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/create/page.tsx b/apps/changelog/src/app/changelog/%5Fadmin/create/page.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/create/page.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/create/page.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/layout.tsx b/apps/changelog/src/app/changelog/%5Fadmin/layout.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/layout.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/layout.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/loading.tsx b/apps/changelog/src/app/changelog/%5Fadmin/loading.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/loading.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/loading.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/page.tsx b/apps/changelog/src/app/changelog/%5Fadmin/page.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/page.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/page.tsx diff --git a/apps/changelog/src/app/(changelog)/%5Fadmin/upload/route.tsx b/apps/changelog/src/app/changelog/%5Fadmin/upload/route.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/%5Fadmin/upload/route.tsx rename to apps/changelog/src/app/changelog/%5Fadmin/upload/route.tsx diff --git a/apps/changelog/src/app/(changelog)/[slug]/loading.tsx b/apps/changelog/src/app/changelog/[slug]/loading.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/[slug]/loading.tsx rename to apps/changelog/src/app/changelog/[slug]/loading.tsx diff --git a/apps/changelog/src/app/(changelog)/[slug]/page.tsx b/apps/changelog/src/app/changelog/[slug]/page.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/[slug]/page.tsx rename to apps/changelog/src/app/changelog/[slug]/page.tsx diff --git a/apps/changelog/src/app/(changelog)/error.tsx b/apps/changelog/src/app/changelog/error.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/error.tsx rename to apps/changelog/src/app/changelog/error.tsx diff --git a/apps/changelog/src/app/(changelog)/feed.xml/route.ts b/apps/changelog/src/app/changelog/feed.xml/route.ts similarity index 100% rename from apps/changelog/src/app/(changelog)/feed.xml/route.ts rename to apps/changelog/src/app/changelog/feed.xml/route.ts diff --git a/apps/changelog/src/app/changelog/globals.css b/apps/changelog/src/app/changelog/globals.css new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/apps/changelog/src/app/(changelog)/header.tsx b/apps/changelog/src/app/changelog/header.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/header.tsx rename to apps/changelog/src/app/changelog/header.tsx diff --git a/apps/changelog/src/app/(changelog)/layout.tsx b/apps/changelog/src/app/changelog/layout.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/layout.tsx rename to apps/changelog/src/app/changelog/layout.tsx diff --git a/apps/changelog/src/app/(changelog)/loading.tsx b/apps/changelog/src/app/changelog/loading.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/loading.tsx rename to apps/changelog/src/app/changelog/loading.tsx diff --git a/apps/changelog/src/app/(changelog)/not-found.tsx b/apps/changelog/src/app/changelog/not-found.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/not-found.tsx rename to apps/changelog/src/app/changelog/not-found.tsx diff --git a/apps/changelog/src/app/(changelog)/page.tsx b/apps/changelog/src/app/changelog/page.tsx similarity index 100% rename from apps/changelog/src/app/(changelog)/page.tsx rename to apps/changelog/src/app/changelog/page.tsx diff --git a/apps/changelog/src/client/components/articleFooter/index.tsx b/apps/changelog/src/client/components/articleFooter/index.tsx index 3f3609bb405ed..8d2803d8f7292 100644 --- a/apps/changelog/src/client/components/articleFooter/index.tsx +++ b/apps/changelog/src/client/components/articleFooter/index.tsx @@ -1,12 +1,14 @@ import {Button} from '../ui/Button'; - -import styles from './styles.module.css'; +import squiggleImage from './squiggle.png'; export default function ArticleFooter() { return (
Your code is broken. Let's Fix it. diff --git a/apps/changelog/public/img/squiggle.png b/apps/changelog/src/client/components/articleFooter/squiggle.png similarity index 100% rename from apps/changelog/public/img/squiggle.png rename to apps/changelog/src/client/components/articleFooter/squiggle.png diff --git a/apps/changelog/src/client/components/articleFooter/styles.module.css b/apps/changelog/src/client/components/articleFooter/styles.module.css deleted file mode 100644 index 636ab9ba0403b..0000000000000 --- a/apps/changelog/src/client/components/articleFooter/styles.module.css +++ /dev/null @@ -1,5 +0,0 @@ -.footer-wrapper { - background: - url('/img/squiggle.png') 0px 0px / 300px 300px, - linear-gradient(315deg, rgb(24, 13, 28) 0.57%, rgb(69, 38, 80) 100%) 0% 0% / cover; -}