- Add serverExternalPackages for @supabase/ssr in next.config.ts - Add export const runtime = 'nodejs' to all pages/routes using Supabase - Replace createAdminClient to use @supabase/supabase-js directly (no SSR) - Prevents @supabase/ssr from running in Edge runtime on Vercel https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
8 lines
150 B
TypeScript
8 lines
150 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
serverExternalPackages: ["@supabase/ssr"],
|
|
};
|
|
|
|
export default nextConfig;
|