Skip to content

Commit

Permalink
src/lib/paddles.ts: Add VITE_ prefix to env variables
Browse files Browse the repository at this point in the history
Signed-off-by: Devansh3712 <[email protected]>
  • Loading branch information
Devansh3712 committed Jul 26, 2023
1 parent 53aa517 commit 0f574ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/paddles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import type { UseQueryResult } from "@tanstack/react-query";
import type { GetURLParams, Run, Job } from "./paddles.d";

const PADDLES_SERVER =
import.meta.env.REACT_APP_PADDLES_SERVER ||
"https://paddles.front.sepia.ceph.com";
import.meta.env.VITE_PADDLES_SERVER || "https://paddles.front.sepia.ceph.com";

function getURL(endpoint: string, params?: GetURLParams) {
// Because paddles' API is clunky, we have to do extra work. If it were
Expand Down

0 comments on commit 0f574ec

Please sign in to comment.