diff --git a/packages/frontend/src/pages/api/frames/images/index.tsx b/packages/frontend/src/pages/api/frames/images/index.tsx index c82ae344..2c44528d 100644 --- a/packages/frontend/src/pages/api/frames/images/index.tsx +++ b/packages/frontend/src/pages/api/frames/images/index.tsx @@ -8,6 +8,8 @@ import moment from 'moment' import { frameConfig, getBids } from '../utils' export const runtime = 'edge' +export const dynamic = 'force-dynamic' // defaults to auto +export const revalidate = 0 export default async function handler(req: NextApiRequest, res: NextApiResponse) { const svg = encodeURIComponent(renderToStaticMarkup()) diff --git a/packages/frontend/src/pages/api/frames/index.tsx b/packages/frontend/src/pages/api/frames/index.tsx index 7e1de265..05f7f8a5 100644 --- a/packages/frontend/src/pages/api/frames/index.tsx +++ b/packages/frontend/src/pages/api/frames/index.tsx @@ -11,7 +11,7 @@ const handleRequest = frames(async (req) => { // Withdrawal period ended if (moment().isAfter(frameConfig.withdrawDate)) { return { - image: `/images`, + image: `/images?status=ended`, imageOptions: { headers: { "Cache-Control": "public, max-age=0", @@ -31,7 +31,7 @@ const handleRequest = frames(async (req) => { // Bidding ended if (moment().isAfter(frameConfig.endDate)) { return { - image: `/images`, + image: `/images?status=withdrawal`, imageOptions: { headers: { "Cache-Control": "public, max-age=0", @@ -49,7 +49,7 @@ const handleRequest = frames(async (req) => { } return { - image: `/images`, + image: `/images?status=active`, imageOptions: { headers: { "Cache-Control": "public, max-age=0",