Files
databasus/next.config.ts
Rostislav Dugin bb9cdc5ffc Reapply "FEATURE (ssr): Migrate to NextJS"
This reverts commit 042e10c49c.
2025-11-09 17:54:13 +03:00

39 lines
868 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async redirects() {
return [
// Old storage URLs to new structure
{
source: "/cloudflare-r2-storage",
destination: "/storages/cloudflare-r2",
permanent: true,
},
{
source: "/google-drive-storage",
destination: "/storages/google-drive",
permanent: true,
},
// Old notifier URLs to new structure
{
source: "/notifier-slack",
destination: "/notifiers/slack",
permanent: true,
},
{
source: "/notifier-teams",
destination: "/notifiers/teams",
permanent: true,
},
// Blog removed permanently
{
source: "/blog",
destination: "/gone",
permanent: true,
},
];
},
};
export default nextConfig;