Should fix front calling wrong api host
All checks were successful
Push image to registry / build-image (push) Successful in 3m43s

This commit is contained in:
2025-02-07 14:47:30 +01:00
parent 63490c136e
commit b0b647cf1f
2 changed files with 4 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -1,13 +1,12 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
return twMerge(clsx(inputs));
}
export async function httpApi<T>(route: string): Promise<T> {
let response = await fetch(import.meta.env.VITE_APP_URL + "/api" + route);
let response = await fetch(+"/api" + route);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);