Files
nym/explorer-v2/next.config.ts
T
2025-06-24 15:26:58 +03:00

34 lines
687 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
reactStrictMode: true,
trailingSlash: false,
async rewrites() {
return [
// Rewrite /sandbox-explorer to root
{
source: "/sandbox-explorer",
destination: "/",
},
// Rewrite /explorer to root
{
source: "/explorer",
destination: "/",
},
// Rewrite /sandbox-explorer/* to /*
{
source: "/sandbox-explorer/:path*",
destination: "/:path*",
},
// Rewrite /explorer/* to /*
{
source: "/explorer/:path*",
destination: "/:path*",
},
];
},
};
export default nextConfig;