Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app-next/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ const nextConfig: NextConfig = {
// SIMPLE PATH-BASED REDIRECTS (βœ… Works in next.config.ts)
// ========================================

// Legacy /apis route redirect to /api
{
source: "/apis",
destination: "/api",
permanent: true, // 301 redirect (preserves SEO and bookmarks)
},

// Entity detail pages: /d/123 β†’ /datasets/123 (no locale prefix for English)
{
source: "/d/:id",
Expand Down Expand Up @@ -94,4 +101,4 @@ const nextConfig: NextConfig = {
},
};

export default withNextIntl(nextConfig);
export default withNextIntl(nextConfig);