From 8543d064b24036e2538cf95d4df60db3006f8b1f Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Fri, 28 Nov 2025 02:51:09 -0600 Subject: [PATCH] chore: remove CatchAll page, add Privacy Policy, Terms and Conditions, and Changelog pages --- apps/website/app/[locale]/[...rest]/page.tsx | 5 -- apps/website/app/api/og/route.ts | 3 - .../_changelog => changelog}/page.tsx | 71 +------------------ apps/website/app/page.tsx | 4 +- .../app/{[locale] => }/privacy/page.tsx | 7 +- .../website/app/{[locale] => }/terms/page.tsx | 11 +-- 6 files changed, 16 insertions(+), 85 deletions(-) delete mode 100644 apps/website/app/[locale]/[...rest]/page.tsx rename apps/website/app/{[locale]/_changelog => changelog}/page.tsx (51%) rename apps/website/app/{[locale] => }/privacy/page.tsx (96%) rename apps/website/app/{[locale] => }/terms/page.tsx (96%) diff --git a/apps/website/app/[locale]/[...rest]/page.tsx b/apps/website/app/[locale]/[...rest]/page.tsx deleted file mode 100644 index 4583936..0000000 --- a/apps/website/app/[locale]/[...rest]/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { notFound } from "next/navigation"; - -export default function CatchAll() { - notFound(); -} diff --git a/apps/website/app/api/og/route.ts b/apps/website/app/api/og/route.ts index 9883471..53cac07 100644 --- a/apps/website/app/api/og/route.ts +++ b/apps/website/app/api/og/route.ts @@ -21,7 +21,6 @@ export async function GET(request: NextRequest) { return new Response("Post not found", { status: 404 }); } - console.log("Found post:", post.title); const formattedDate = new Date(post.published_at).toLocaleDateString( "en-US", @@ -44,8 +43,6 @@ export async function GET(request: NextRequest) { readingTime: post.reading_time, }); - console.log("Successfully generated OG image"); - return new Response(ogImage, { headers: { "Content-Type": "image/png", diff --git a/apps/website/app/[locale]/_changelog/page.tsx b/apps/website/app/changelog/page.tsx similarity index 51% rename from apps/website/app/[locale]/_changelog/page.tsx rename to apps/website/app/changelog/page.tsx index 7eb23ee..8acfde8 100644 --- a/apps/website/app/[locale]/_changelog/page.tsx +++ b/apps/website/app/changelog/page.tsx @@ -1,12 +1,11 @@ -// import { ScrollArea } from "@/components/ui/scroll-area"; import type { Metadata } from "next"; export const metadata: Metadata = { title: "Changelog", - description: "Stay updated with the latest changes, improvements, and features in Dokploy", + description: + "Stay updated with the latest changes, improvements, and features in Dokploy", }; -// Datos de ejemplo del changelog const changelogEntries = [ { date: "2023-11-01", @@ -83,7 +82,7 @@ export default function ChangelogPage() { -
+

Changelog

{changelogEntries.map((entry, index) => ( @@ -123,67 +122,3 @@ export default function ChangelogPage() { ); } -// Unused/old version below -// const Comp = () => { -// ... -// }; - -// export default function Changelog() { -// return ( -//
-//
-// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -//
-//
-//

Changelog

-//
-// {changelogEntries.map((entry, index) => ( -//
-//
-// -// {entry.date} -// -//

{entry.title}

-//
-//
-//
-// {`Imagen -//
- -//
    -// {entry.changes.map((change, changeIndex) => ( -//
  • -// {change} -//
  • -// ))} -//
-//
-//
-// ))} -//
-//
-//
-// ); -// } diff --git a/apps/website/app/page.tsx b/apps/website/app/page.tsx index 3ed6fad..7210ade 100644 --- a/apps/website/app/page.tsx +++ b/apps/website/app/page.tsx @@ -10,7 +10,9 @@ import { StatsSection } from "@/components/stats"; import type { Metadata } from "next"; export const metadata: Metadata = { - title: "Dokploy | Deploy your applications with ease", + title: { + absolute: "Dokploy - Deploy your applications with ease", + }, description: "Open-source self-hostable Platform as a Service (PaaS) that simplifies the deployment and management of applications and databases", }; diff --git a/apps/website/app/[locale]/privacy/page.tsx b/apps/website/app/privacy/page.tsx similarity index 96% rename from apps/website/app/[locale]/privacy/page.tsx rename to apps/website/app/privacy/page.tsx index c28c800..6859800 100644 --- a/apps/website/app/[locale]/privacy/page.tsx +++ b/apps/website/app/privacy/page.tsx @@ -6,9 +6,9 @@ export const metadata: Metadata = { "Learn about how Dokploy collects, uses, and safeguards your personal information when you use our website and services.", }; -export default function Home() { +export default function PrivacyPage() { return ( -
+

Privacy

@@ -105,7 +105,7 @@ export default function Home() { please contact us at:

- Email: + Email:{" "} ); } + diff --git a/apps/website/app/[locale]/terms/page.tsx b/apps/website/app/terms/page.tsx similarity index 96% rename from apps/website/app/[locale]/terms/page.tsx rename to apps/website/app/terms/page.tsx index 556c673..e7d53ed 100644 --- a/apps/website/app/[locale]/terms/page.tsx +++ b/apps/website/app/terms/page.tsx @@ -6,9 +6,9 @@ export const metadata: Metadata = { "Read the terms and conditions for using Dokploy's website and services.", }; -export default function Home() { +export default function TermsPage() { return ( -

+

Terms and Conditions

@@ -16,7 +16,7 @@ export default function Home() {

Welcome to Dokploy! These Terms and Conditions outline the rules and - regulations for the use of Dokploy’s website and services. + regulations for the use of Dokploy's website and services.

By accessing or using our services, you agree to be bound by the @@ -188,7 +188,7 @@ export default function Home() { These Terms & Conditions are governed by applicable laws based on the user's location. Any disputes arising under these terms will be resolved in accordance with the legal jurisdiction relevant to the - user’s location, unless otherwise required by applicable law. + user's location, unless otherwise required by applicable law.

@@ -199,7 +199,7 @@ export default function Home() { reach us at:

- Email: + Email:{" "} ); } +