import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ async redirects() { return [ // Basic redirect { source: '/admin', destination: '/admin/dashboard', permanent: true, }, ] }, }; export default nextConfig;