Skip to content

Commit

Permalink
chore: fix api url fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed May 3, 2024
1 parent 1181fd3 commit eb96265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { handleFetchRequest } from "./handle-fetch-request.ts";
const API_VERSION = import.meta.env.VITE_BACKEND_API_VERSION ?? "api/v1/";
const API_URL =
`${import.meta.env.VITE_BACKEND_URL}${API_VERSION}` ??
`${window.location.origin}${API_VERSION}`;
`${window.location.origin}/${API_VERSION}`;

type TCreateProductionOptions = {
name: string;
Expand Down

0 comments on commit eb96265

Please sign in to comment.