From 58dbcdc3aa3835102bc35f85d3b7f30a68e785fb Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Fri, 22 Nov 2024 11:40:21 +0100 Subject: [PATCH] rm cache life in layout --- apps/login/src/app/(login)/layout.tsx | 2 -- apps/login/src/lib/zitadel.ts | 4 ---- apps/login/tailwind.config.mjs | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/login/src/app/(login)/layout.tsx b/apps/login/src/app/(login)/layout.tsx index 75820d79905..9105c45eb9a 100644 --- a/apps/login/src/app/(login)/layout.tsx +++ b/apps/login/src/app/(login)/layout.tsx @@ -14,8 +14,6 @@ const lato = Lato({ subsets: ["latin"], }); -export const revalidate = 60; // revalidate every minute - export default async function RootLayout({ children, }: { diff --git a/apps/login/src/lib/zitadel.ts b/apps/login/src/lib/zitadel.ts index ad0b48bc4a3..7c5d63c4e5a 100644 --- a/apps/login/src/lib/zitadel.ts +++ b/apps/login/src/lib/zitadel.ts @@ -41,10 +41,6 @@ import { unstable_cacheLife as cacheLife } from "next/cache"; import { PROVIDER_MAPPING } from "./idp"; const SESSION_LIFETIME_S = 3600; // TODO load from oidc settings -const CACHE_REVALIDATION_INTERVAL_IN_SECONDS = process.env - .CACHE_REVALIDATION_INTERVAL_IN_SECONDS - ? Number(process.env.CACHE_REVALIDATION_INTERVAL_IN_SECONDS) - : 3600; const transport = createServerTransport( process.env.ZITADEL_SERVICE_USER_TOKEN!, diff --git a/apps/login/tailwind.config.mjs b/apps/login/tailwind.config.mjs index 705398ceb64..0241b0c4490 100644 --- a/apps/login/tailwind.config.mjs +++ b/apps/login/tailwind.config.mjs @@ -35,7 +35,7 @@ types.forEach((type) => { }); /** @type {import('tailwindcss').Config} */ -module.exports = { +export default { presets: [sharedConfig], darkMode: "class", content: ["./src/**/*.{js,ts,jsx,tsx}"],