chore: remove CatchAll page, add Privacy Policy, Terms and Conditions, and Changelog pages

This commit is contained in:
Mauricio Siu
2025-11-28 02:51:09 -06:00
parent a6a8480b0f
commit 8543d064b2
6 changed files with 16 additions and 85 deletions

View File

@@ -1,5 +0,0 @@
import { notFound } from "next/navigation";
export default function CatchAll() {
notFound();
}

View File

@@ -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",

File diff suppressed because one or more lines are too long

View File

@@ -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",
};

View File

@@ -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 (
<div className="flex flex-col gap-4 w-full max-w-4xl mx-auto">
<div className="flex flex-col gap-4 w-full max-w-4xl mx-auto py-12 px-4">
<h1 className="text-3xl font-bold text-center mb-6">Privacy</h1>
<section className="flex flex-col gap-2">
@@ -105,7 +105,7 @@ export default function Home() {
please contact us at:
</p>
<p className="mb-4">
Email:
Email:{" "}
<a
href="mailto:support@dokploy.com"
className="text-blue-500 hover:underline"
@@ -117,3 +117,4 @@ export default function Home() {
</div>
);
}

View File

@@ -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 (
<div className="flex flex-col gap-4 w-full max-w-4xl mx-auto">
<div className="flex flex-col gap-4 w-full max-w-4xl mx-auto py-12 px-4">
<h1 className="text-3xl font-bold text-center mb-6">
Terms and Conditions
</h1>
@@ -16,7 +16,7 @@ export default function Home() {
<section className="flex flex-col gap-2">
<p>
Welcome to Dokploy! These Terms and Conditions outline the rules and
regulations for the use of Dokploys website and services.
regulations for the use of Dokploy's website and services.
</p>
<p>
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
users location, unless otherwise required by applicable law.
user's location, unless otherwise required by applicable law.
</p>
</section>
@@ -199,7 +199,7 @@ export default function Home() {
reach us at:
</p>
<p className="mb-4">
Email:
Email:{" "}
<a
href="mailto:support@dokploy.com"
className="text-blue-500 hover:underline"
@@ -211,3 +211,4 @@ export default function Home() {
</div>
);
}