diff --git a/apps/web/src/pages/api/configs/farms/v2/[chain].ts b/apps/web/src/pages/api/configs/farms/v2/[chain].ts index a5621619cea39..43444c6cc69ee 100644 --- a/apps/web/src/pages/api/configs/farms/v2/[chain].ts +++ b/apps/web/src/pages/api/configs/farms/v2/[chain].ts @@ -1,5 +1,5 @@ -import { ChainId, chainNames, chainNameToChainId } from '@pancakeswap/chains' -import { formatUniversalFarmToSerializedFarm, UNIVERSAL_FARMS } from '@pancakeswap/farms' +import { ChainId, chainNameToChainId, chainNames } from '@pancakeswap/chains' +import { UNIVERSAL_FARMS_WITH_TESTNET, formatUniversalFarmToSerializedFarm } from '@pancakeswap/farms' import { NextApiHandler } from 'next' import { stringify } from 'viem' import { enum as enum_, nativeEnum } from 'zod' @@ -24,7 +24,7 @@ const handler: NextApiHandler = async (req, res) => { } try { - const farmConfig = UNIVERSAL_FARMS.filter((farm) => farm.chainId === chainId) + const farmConfig = UNIVERSAL_FARMS_WITH_TESTNET.filter((farm) => farm.chainId === chainId) const legacyFarmConfig = formatUniversalFarmToSerializedFarm(farmConfig) // cache for long time, it should revalidate on every deployment res.setHeader('Cache-Control', `max-age=10800, s-maxage=31536000`) diff --git a/apps/web/src/pages/api/configs/farms/v2/index.ts b/apps/web/src/pages/api/configs/farms/v2/index.ts index 8deaf1120182f..723fb0d4d528a 100644 --- a/apps/web/src/pages/api/configs/farms/v2/index.ts +++ b/apps/web/src/pages/api/configs/farms/v2/index.ts @@ -1,4 +1,4 @@ -import { formatUniversalFarmToSerializedFarm, UNIVERSAL_FARMS, UNIVERSAL_FARMS_WITH_TESTNET } from '@pancakeswap/farms' +import { UNIVERSAL_FARMS, UNIVERSAL_FARMS_WITH_TESTNET, formatUniversalFarmToSerializedFarm } from '@pancakeswap/farms' import { NextApiHandler } from 'next' import { stringify } from 'viem' @@ -6,7 +6,7 @@ const handler: NextApiHandler = async (req, res) => { const includeTestnet = !!req.query.includeTestnet try { - const farmConfig = includeTestnet ? UNIVERSAL_FARMS : UNIVERSAL_FARMS_WITH_TESTNET + const farmConfig = includeTestnet ? UNIVERSAL_FARMS_WITH_TESTNET : UNIVERSAL_FARMS const legacyFarmConfig = formatUniversalFarmToSerializedFarm(farmConfig) // cache for long time, it should revalidate on every deployment res.setHeader('Cache-Control', `max-age=10800, s-maxage=31536000`)