cg / hackerproducts
63 files · 5,740 lines · 159.1 KB — Next.js 15, React 19, TypeScript, PostgreSQL, Object Storage, plain CSS.
Quick jump: page.tsxpage.tsxglobals.cssschema.sqlpackage.json
root / src / app / p / [slug] / edit / page.tsx
src/app/p/[slug]/edit/page.tsx · 11 lines · 242 B← back to folder
| 1 | import { permanentRedirect } from "next/navigation"; |
| 2 | |
| 3 | export default async function LegacyProductEditRedirect({ |
| 4 | params, |
| 5 | }: { |
| 6 | params: Promise<{ slug: string }>; |
| 7 | }) { |
| 8 | const { slug } = await params; |
| 9 | permanentRedirect(`/${slug}/edit`); |
| 10 | } |
| 11 |