rm cache life in layout

This commit is contained in:
Max Peintner
2024-11-22 11:40:21 +01:00
parent 2cb726776e
commit 58dbcdc3aa
3 changed files with 1 additions and 7 deletions

View File

@@ -14,8 +14,6 @@ const lato = Lato({
subsets: ["latin"],
});
export const revalidate = 60; // revalidate every minute
export default async function RootLayout({
children,
}: {

View File

@@ -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!,

View File

@@ -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}"],