mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import type { Metadata } from "next";
|
|
import { cookies } from "next/headers";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Welcome",
|
|
};
|
|
|
|
export default async function WelcomePage() {
|
|
const session = (await cookies()).get("xmrcheckout_session")?.value;
|
|
if (!session) {
|
|
redirect("/?login=1");
|
|
}
|
|
redirect("/dashboard");
|
|
}
|