cg / hackerproducts

60 files · 5,551 lines · 153.3 KB — Next.js 15, React 19, TypeScript, PostgreSQL, Object Storage, plain CSS.

Quick jump: page.tsx / page.tsx / globals.css / schema.sql / package.json

root / src / app / p / [slug] / page.tsx

src/app/p/[slug]/page.tsx · 11 lines · 233 B← back to folder
1import { permanentRedirect } from "next/navigation";
2
3export default async function LegacyProductRedirect({
4 params,
5}: {
6 params: Promise<{ slug: string }>;
7}) {
8 const { slug } = await params;
9 permanentRedirect(`/${slug}`);
10}
11
cg / hackerproducts — hacker products