Started working on release notes

This commit is contained in:
Mauro Balades
2024-07-11 21:58:11 +02:00
parent 12cf6a6153
commit 74d44c9bd6
5 changed files with 48 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
'use client'
import { useParams } from 'next/navigation'
export default function() {
const params = useParams<{ version: string }>()
const { version } = params;
return (
<div>
<h1>{version}</h1>
</div>
)
}

View File

@@ -0,0 +1,7 @@
import { releaseNotes } from "@/lib/release-notes";
import { redirect } from "next/navigation";
export default function() {
// "0" is the latest release
redirect(`/release-notes/${releaseNotes[0].version}`);
}