Started working on release notes
This commit is contained in:
14
src/app/release-notes/[version]/page.tsx
Normal file
14
src/app/release-notes/[version]/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
7
src/app/release-notes/page.tsx
Normal file
7
src/app/release-notes/page.tsx
Normal 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}`);
|
||||
}
|
||||
Reference in New Issue
Block a user