When using Supabase Edge Functions (Deno runtime) within a Next.js project, you need to configure three files to prevent build errors and linting issues. The main problem is that Next.js uses Node.js/TypeScript while Supabase functions use Deno, which have different global APIs.
Add the supabase/functions/**
directory to the exclude array to prevent TypeScript from trying to compile Deno code during the Next.js build process.