Skip to content

deploy Granian to Vercel for a Flask/Quart project #242

Discussion options

You must be logged in to vote

Hi an update here: we can actually use Granian as a server runner in Vercel. one of my webapps has been using Granian and it works well.

Just need to add devCommand in the vercel.json file for example:

{
  "devCommand": "granian --interface asgi app:app",
  "version": 2,
  "builds": [
    {
      "src": "app.py",
      "use": "@vercel/python"
    }
  ],
  "routes": [
      {
        "src": "/(.*)",
        "dest": "app.py"
      }
  ]
}

Cheers!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rakshasha-medhi
Comment options

Answer selected by rakshasha-medhi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #240 on March 11, 2024 08:54.