env update

This commit is contained in:
Owen Rees
2023-06-13 10:37:37 +02:00
parent af28bd49ef
commit fba59d00e4
+1 -1
View File
@@ -3,7 +3,7 @@
* @remarks The result is cached for the revalidation period in seconds
*/
export default async function getTournaments(country: string) {
const server = process.env.SERVER;
const server = process.env.NEXT_PUBLIC_SITE_URL;
const res = await fetch(`${server}/api/tournaments/${country}`, {
next: { revalidate: 300 },
});