setup redirect

This commit is contained in:
Corwin 2024-05-12 15:27:48 +01:00
parent e9b65e3423
commit 839ee3b6f7
No known key found for this signature in database

View file

@ -0,0 +1,29 @@
import { ContentBlock } from "@/components/contentBlock";
import { Metadata } from "next";
import { redirect } from "next/navigation";
export const metadata: Metadata = {
title: "Dungeon Puzzler Redirect",
};
const REDIRECT_TO = "/showcase/the-dungeon-puzzler's-lament";
export default function DplRedirectPage() {
redirect(REDIRECT_TO);
return (
<>
<ContentBlock>
<h1>This page is a redirect to the Dungeon Puzzler</h1>
</ContentBlock>
<ContentBlock>
<p>
You should be redirected automatically.{" "}
<a href={REDIRECT_TO}>
If you were not redirected automatically click here.
</a>
</p>
</ContentBlock>
</>
);
}