Skip to content

Commit

Permalink
fixed conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rupamkairi committed Jan 14, 2025
1 parent 0e35837 commit 9860857
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/server/src/pages/api/v1/fires/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ type ResponseData =
error?: object | unknown;
};

const CACHING = Boolean(process.env.PUBLIC_API_CACHING?.toLowerCase()) ?? true;
let CACHING = true;
if(process.env.PUBLIC_API_CACHING && process.env.PUBLIC_API_CACHING?.toLowerCase() === "false") {
CACHING = false;
}

export default async function firesBySiteHandler(
req: NextApiRequest,
Expand Down

0 comments on commit 9860857

Please sign in to comment.