mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
import type { Metadata } from "next";
|
|
import { notFound, redirect } from "next/navigation";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Donate",
|
|
};
|
|
|
|
export default function DonatePage() {
|
|
const donationsEnabled = process.env.NEXT_PUBLIC_DONATIONS_ENABLED === "true";
|
|
if (!donationsEnabled) {
|
|
notFound();
|
|
}
|
|
redirect("/?donate=1");
|
|
}
|