Skip to content

Commit c8ac992

Browse files
committed
fix: cache pages
1 parent 523b76b commit c8ac992

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

apps/example/app/custom/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { ColorCard } from "@/components/ColorCard";
66
import { ExampleLayout } from "@/components/ExampleLayout";
77
import { ConfigPreview } from "@/components/ConfigPreview";
88

9+
export const revalidate = 60 * 60 * 24;
10+
911
export default async function CustomExample() {
1012
const config = await getTailwindConfig(
1113
"../../apps/example/tailwind-custom.config.js"

apps/example/app/radix-colors/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { ColorCard } from "@/components/ColorCard";
66
import { ExampleLayout } from "@/components/ExampleLayout";
77
import { ConfigPreview } from "@/components/ConfigPreview";
88

9+
export const revalidate = 60 * 60 * 24;
10+
911
export default async function CustomExample() {
1012
const config = await getTailwindConfig(
1113
"../../apps/example/tailwind-radix.config.js"

apps/example/app/tailwind-colors/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { ColorCard } from "@/components/ColorCard";
66
import { ExampleLayout } from "@/components/ExampleLayout";
77
import { ConfigPreview } from "@/components/ConfigPreview";
88

9+
export const revalidate = 60 * 60 * 24;
10+
911
export default async function CustomExample() {
1012
const config = await getTailwindConfig(
1113
"../../apps/example/tailwind-tailwind.config.js"

0 commit comments

Comments
 (0)