Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel Python - vercel build looks for and can't find /supabase/migrations/... #3370

Open
jtewright opened this issue Mar 28, 2025 · 0 comments

Comments

@jtewright
Copy link

jtewright commented Mar 28, 2025

Describe the bug
Python project deployed to Vercel. Using Supabase CLI for local dev, db migrations etc. When building on Vercel, the vercel build process tries to open /supabase/migrations/*.sql but can't find those files. Not sure why vercel is trying to open those files, perhaps it opens all files; not sure why it can't find them.

To Reproduce

  1. Create python project, deploy to vercel
  2. install supabase cli locally, link to db, db pull migrations
  3. push the updated project to github, deploy to vercel

Expected behavior
Vercel finds the supabase/migrations/*.sql files and does nothing with them, or ignores them

Screenshots

[Error: ENOENT: no such file or directory, open '/vercel/path0/supabase/migrations/{timestamp}_remote_schema.sql'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/vercel/path0/supabase/migrations/{timestamp}_remote_schema.sql'
}
Error: An unexpected error occurred!
Error: ENOENT: no such file or directory, open '/vercel/path0/supabase/migrations/{timestamp}_remote_schema.sql'
Error: Command "vercel build" exited with 1
Command "vercel build" exited with 1

System information
Vercel project, python 3.12
Supabase CLI 2.20.5

Workaround / Solution
Adding supabase to .vercelignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant