Connect, collaborate, and grow with a community of TypeScript developers
Fix 404 Issue (#1063)
Zach Lankton91a5439a7716
diff --git a/apps/web/src/app/[locale]/[...catchAll404]/page.tsx b/apps/web/src/app/[locale]/[...catchAll404]/page.tsxnew file mode 100644index 00000000..252e0bac--- /dev/null+++ b/apps/web/src/app/[locale]/[...catchAll404]/page.tsx@@ -0,0 +1,6 @@+import { notFound } from 'next/navigation';+import NotFound from '../not-found';++export default function CatchAllPage() {+ return <NotFound />;+}diff --git a/apps/web/src/app/[locale]/layout.tsx b/apps/web/src/app/[locale]/layout.tsxindex ab806199..3ca073ef 100644--- a/apps/web/src/app/[locale]/layout.tsx+++ b/apps/web/src/app/[locale]/layout.tsx@@ -8,6 +8,46 @@ import { Navigation } from '~/components/navigation';import { getStaticParams } from '~/locales/server';import { Providers } from './providers';+import { OG_URL, tagline } from '../metadata';++export const metadata = {+ metadataBase: new URL(OG_URL),+ title: 'TypeHero',+ robots: {+ index: true,+ follow: true,+ },+ description: tagline,+ openGraph: {+ title: 'TypeHero',+ description: tagline,+ siteName: 'TypeHero',+ images: [+ {+ url: `${OG_URL}/api/default`,+ width: 1920,+ height: 1080,+ },+ ],+ locale: 'en-US',+ type: 'website',+ },+ twitter: {+ title: 'TypeHero',+ card: 'summary_large_image',+ images: [+ {+ url: `${OG_URL}/api/default`,+ width: 1920,+ height: 1080,+ },+ ],+ },+ icons: {+ shortcut: '/favicon.ico',+ },+};+const inter = Inter({ subsets: ['latin'] });export function generateStaticParams() {diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsxdeleted file mode 100644index 31fc7c62..00000000--- a/apps/web/src/app/layout.tsx+++ /dev/null@@ -1,43 +0,0 @@-import { OG_URL, tagline } from './metadata';--export const metadata = {- metadataBase: new URL(OG_URL),- title: 'TypeHero',- robots: {- index: true,- follow: true,- },- description: tagline,- openGraph: {- title: 'TypeHero',- description: tagline,- siteName: 'TypeHero',- images: [- {- url: `${OG_URL}/api/default`,- width: 1920,- height: 1080,- },- ],- locale: 'en-US',- type: 'website',- },- twitter: {- title: 'TypeHero',- card: 'summary_large_image',- images: [- {- url: `${OG_URL}/api/default`,- width: 1920,- height: 1080,- },- ],- },- icons: {- shortcut: '/favicon.ico',- },-};--export default function RootLayout({ children }: { children: React.ReactNode }) {- return children;-}