Search code examples
postgresqlvercelsupabaselaravel-10

Laravel Vercel + Postgre Supabase


when I use supabase on local and I try 'php artisan migrate' it works but when I try on production I get the error 'could find driver pgsql'

I have tried the terminal on my Laravel Vercel and config: clear but it still doesn't work


Solution

  • try changing this part of the code in vercel.json to something like this

    "functions": {
             "api/index.php": { "runtime": "vercel-php@0.6.1" }
         },