Skip to content

Commit

Permalink
updated middleware URL (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinkulshi-skylight committed Dec 12, 2024
1 parent 9284f14 commit bfad792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "./types/types";

const apiUrl = import.meta.env.VITE_API_URL || "http://localhost:8000/";
const middlewareURL = import.meta.env.MIDDLEWARE_API_URL || "http://localhost:8000/";
const middlewareURL = import.meta.env.VITE_MIDDLEWARE_API_URL || "http://localhost:8000/";

export const AlignImage = async (
args: AlignImageArgs,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/types/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface Template {
type TemplateStatus = "Completed" | "In Progress" | "Deprecated";

const MIDDLEWARE_URL =
import.meta.env.MIDDLEWARE_API_URL || "http://localhost:8081";
import.meta.env.VITE_MIDDLEWARE_API_URL || "http://localhost:8081";
export const TemplateAPI = {
getTemplates: async (): Promise<Template[]> => {
const response = await fetch(`${MIDDLEWARE_URL}/templates`);
Expand Down

0 comments on commit bfad792

Please sign in to comment.