cg / hackerproducts

63 files · 5,740 lines · 159.1 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] / edit / page.tsx

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