Home / Function/ nextConfig.redirects() — supabase Function Reference

nextConfig.redirects() — supabase Function Reference

Architecture documentation for the nextConfig.redirects() function in next.config.mjs from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/learn/next.config.mjs lines 7–20

  async redirects() {
    return [
      ...(process.env.NEXT_PUBLIC_BASE_PATH?.length
        ? [
            {
              source: '/',
              destination: process.env.NEXT_PUBLIC_BASE_PATH,
              basePath: false,
              permanent: false,
            },
          ]
        : []),
    ]
  },

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free