mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
env revert
This commit is contained in:
@@ -3,9 +3,7 @@
|
|||||||
* @remarks The result is cached for the revalidation period in seconds
|
* @remarks The result is cached for the revalidation period in seconds
|
||||||
*/
|
*/
|
||||||
export default async function getTournaments(country: string) {
|
export default async function getTournaments(country: string) {
|
||||||
const server = process.env.NEXT_PUBLIC_VERCEL_URL
|
const server = process.env.SERVER;
|
||||||
? process.env.NEXT_PUBLIC_VERCEL_URL
|
|
||||||
: process.env.SERVER;
|
|
||||||
|
|
||||||
const res = await fetch(`${server}/api/tournaments/${country}`, {
|
const res = await fetch(`${server}/api/tournaments/${country}`, {
|
||||||
next: { revalidate: 300 },
|
next: { revalidate: 300 },
|
||||||
|
|||||||
Reference in New Issue
Block a user