Vercel Serverless Python External Module & ignore certains routes
Unanswered
Yacare Caiman posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
Hello, how can I download external module for my serverless function. I am using requests.
My vercel.json
{
"installCommand": "pip install -r requirements.txt"
}
My vercel.json
{
"installCommand": "pip install -r requirements.txt"
}
7 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
Also, is there a way to redirect all path to / except a certains one?
For example I have my api folder and another folder test with a python file inside if I do test/pythonfile.py it will download the file how can I fix that?
For example I have my api folder and another folder test with a python file inside if I do test/pythonfile.py it will download the file how can I fix that?
I fixed this, I deleted the project on vercel and reuploaded it fixed the issue, idk why. maybe I had to run vercel --prod
I used .vercelignore to fix this but for example I can still access the README.md, etc.
Do I have to specify everysingle file in the ignore at this point?
Do I have to specify everysingle file in the ignore at this point?
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Yacare CaimanOP
@linesofcode do you have an idea?
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
It's rude and against the rules of this discord server to ping people not invovled in the conversation (imagine if everyone who needed help pinged somebody)
and no, I dont have an idea
ive barely used python with vercel