Skip to main content

One post tagged with "developing"

View All Tags

Whats the point of __init__.py on Vercel

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The imports working perfectly fine locally, but failed after deploying on Vercel. The error I've experiencing is common when deploying Python applications with a specific file structure. My local environment likely handles imports differently than Vercel's serverless environment(because of the folder structure), which can cause import errors. The solution is to ensure that my project structure is recognized as a Python package