diff --git a/app/api/admin/rebuild-snapshots/route.ts b/app/api/admin/rebuild-snapshots/route.ts index 5f85e10..852f719 100644 --- a/app/api/admin/rebuild-snapshots/route.ts +++ b/app/api/admin/rebuild-snapshots/route.ts @@ -3,6 +3,7 @@ import { reconstructPortfolioHistory } from '@/actions/snapshots'; import { revalidatePath } from 'next/cache'; export const dynamic = 'force-dynamic'; +export const fetchCache = 'force-no-store'; export const runtime = 'nodejs'; export const maxDuration = 3600; diff --git a/app/api/cron/fetch-prices/route.ts b/app/api/cron/fetch-prices/route.ts index e52bc23..1acda57 100644 --- a/app/api/cron/fetch-prices/route.ts +++ b/app/api/cron/fetch-prices/route.ts @@ -5,6 +5,7 @@ import { inArray } from 'drizzle-orm'; import { ProxyAgent, setGlobalDispatcher } from 'undici'; export const dynamic = 'force-dynamic'; +export const fetchCache = 'force-no-store'; export const runtime = 'nodejs'; function formatDateStr(date: Date): string { diff --git a/app/api/cron/fetch-rates/route.ts b/app/api/cron/fetch-rates/route.ts index 07bf523..d9e64e3 100644 --- a/app/api/cron/fetch-rates/route.ts +++ b/app/api/cron/fetch-rates/route.ts @@ -4,6 +4,7 @@ import { exchangeRatesHistory } from '@/db/schema'; import { ProxyAgent, setGlobalDispatcher } from 'undici'; export const dynamic = 'force-dynamic'; +export const fetchCache = 'force-no-store'; export const runtime = 'nodejs'; const CURRENCIES = [ diff --git a/app/api/debug/snapshot/route.ts b/app/api/debug/snapshot/route.ts index 82eb1da..dc01880 100644 --- a/app/api/debug/snapshot/route.ts +++ b/app/api/debug/snapshot/route.ts @@ -10,6 +10,7 @@ import { and, asc, desc, eq, lte } from 'drizzle-orm'; import Big from 'big.js'; export const dynamic = 'force-dynamic'; +export const fetchCache = 'force-no-store'; export const runtime = 'nodejs'; function formatDateString(date: Date): string { diff --git a/next.config.ts b/next.config.ts index 0ae7d0f..998dec2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,9 +3,6 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', - eslint: { - ignoreDuringBuilds: true, - }, typescript: { ignoreBuildErrors: true, },