1
0

feat: Integrate
All checks were successful
Remote Deploy / deploy (push) Successful in 36s

This commit is contained in:
2026-02-12 18:08:15 +01:00
parent cea8cdf4ee
commit e9ea35a064
13 changed files with 209 additions and 68 deletions

View File

@@ -1,8 +1,9 @@
import { SubstitutionData } from "./types";
export async function getData(): Promise<SubstitutionData | null> {
const apiUrl = process.env.API_URL || 'http://localhost:3000';
try {
const res = await fetch('http://localhost:3000/versioned/v3', {
const res = await fetch(`${apiUrl}/versioned/v3`, {
next: { revalidate: 60 },
});

View File

@@ -4,3 +4,8 @@ import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function capitalizeFirstLetter(string: string) {
if (!string) return string;
return string.charAt(0).toUpperCase() + string.slice(1);
}