Total Pageviews

Saturday 8 June 2024

vercel-tmdb-proxy

 A simple proxy for the TheMovieDB API using Vercel Serverless Functions。

Setup

Requires a TMDB_API_KEY environment variable which can be setup via Vercel (https://vercel.com/docs/build-step#environment-variables) or by creating a .env file.

Instructions to get a personal TMDB API key can be found here: https://developers.themoviedb.org/3/getting-started/introduction

Local

To run Vercel serverless locally:

  • First install all packages using npm install
  • Link your Vercel project to this project by running vercel
  • Pull any Vercel env variables to your local machine using vercel env pull
  • Then run vercel dev to run a local instance or vercel dev --listen PORT to run on a different port.

from https://github.com/jamvel/vercel-tmdb-proxy
------

相关帖子:

No comments:

Post a Comment