Next.js Discord

Discord Forum

PDF extractor

Unanswered
mansoor50 posted this in #help-forum
Open in Discord
Am using PyMuPDF extractor in my nextjs web app. the app is hosted on vercel (pro account). am using nextjs version 14.2.30.
The python PyMuPDF runs fine on the locally but it is failing to deploy on vercel.
Any help will be appreciated.
vercel.json:
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "functions": {
    "api/pdf-extract.py": {
      "runtime": "vercel-python",
      "memory": 1024,
      "maxDuration": 30
    }
  }
}

requirements.txt:
PyMuPDF==1.23.14

0 Replies