env revert

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