serhii.net

In the middle of the desert you can say anything you want

UNLISTED

02 Dec 2024

Vercel basics

Basics

  • CLI: npm package vercel, then you can do things like
    • vercel env [list|add|...]
    • vercel dev runs the thing locally at localhost
    • vercel deploy does a deployment
  • General
    • A Git repo is a really good way to do deployments
      • deployment updates automatically when pushed to main (or not main)
  • Website
    • you can add env. variables, including hidden ones (won’t be show in the UI)

Deployment protection

TODO

Using private dependencies

How do I use private dependencies with Vercel?

  • TL;DR create a GitHub/GitLab PAT, then in requirements.txt do the usual git+....user:PAT@....git
  • Any way I can avoid committing my PAT to requirements? TODO+
    • Pipfile can do env. vars, requirements.txt doesn’t seem to
  • Linked GitHub repo and requirements.txt - General - Render not working for me:
    • package-name @ git+https://${GITHUB_TOKEN}@github.com/user/package-name.git@main
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus