How to specify path to custom python modules when deploying

Hello, when deploying the project, an error occurs:

File "/var/task/api/main.py", line 2, in <module>
from config import app, db
ModuleNotFoundError: No module named 'config'

i added vercel.json and requirements.txt from the example

{
  "rewrites": [
    { "source": "/(.*)", "destination": "/api/main" }
  ]
}
Flask==3.0.3

I have 2 more modules in same api folder
How to specify the path to my Python modules?

my project if needed

backend on python flask
frontend on javascript react

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.