This commit is contained in:
@@ -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 },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user