Skip to content

Commit

Permalink
fix: Block IMDB API Fetch due to Vercel Limit
Browse files Browse the repository at this point in the history
Vercel has a limit to wait the responde of the api, but it takes soo much time to load that it closes, giving no results after that.
  • Loading branch information
ErickLimaS committed Oct 4, 2024
1 parent 5eae33b commit 3b60f30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/api/consumet/consumetImdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import Axios from "axios";
import axiosRetry from "axios-retry";
import { cache } from "react";

const CONSUMET_API_URL = process.env.NEXT_PUBLIC_CONSUMET_API_URL;

// ATTENTION
// PROBLEMS WITH VERCEL FREE TIER LIMIT
// const CONSUMET_API_URL = process.env.NEXT_PUBLIC_CONSUMET_API_URL;
const CONSUMET_API_URL = "process.env.NEXT_PUBLIC_CONSUMET_API_URL"; // its really made to go wrong this one

// HANDLES SERVER ERRORS, most of time when server was not running due to Free Tier usage
axiosRetry(Axios, {
Expand Down

0 comments on commit 3b60f30

Please sign in to comment.