From 1829772e2a33107a1a3139767d7adc934689b539 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Fri, 2 Aug 2024 09:37:45 -0600 Subject: [PATCH] fix(nx-dev): Turn off next.js cache for careers api --- nx-dev/data-access-careers/src/lib/api.ts | 2 +- nx-dev/data-access-careers/tsconfig.lib.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nx-dev/data-access-careers/src/lib/api.ts b/nx-dev/data-access-careers/src/lib/api.ts index bf4a0bf406517..9696b98463b69 100644 --- a/nx-dev/data-access-careers/src/lib/api.ts +++ b/nx-dev/data-access-careers/src/lib/api.ts @@ -3,7 +3,7 @@ import { Job, LeverJob } from './models'; export async function fetchJobsList(): Promise { const apiUrl = 'https://api.lever.co/v0/postings/nrwl?mode=json'; - const res = await fetch(apiUrl); + const res = await fetch(apiUrl, { cache: 'no-store' }); if (res.ok) { const data = (await res.json()) as LeverJob[]; diff --git a/nx-dev/data-access-careers/tsconfig.lib.json b/nx-dev/data-access-careers/tsconfig.lib.json index cfc4843293956..3b824cf3a50b7 100644 --- a/nx-dev/data-access-careers/tsconfig.lib.json +++ b/nx-dev/data-access-careers/tsconfig.lib.json @@ -4,10 +4,10 @@ "outDir": "../../dist/out-tsc", "types": [ "node", - "@nx/react/typings/cssmodule.d.ts", "@nx/react/typings/image.d.ts" - ] + ], + "lib": ["dom"] }, "exclude": [ "jest.config.ts",