Skip to content

Commit

Permalink
fix: caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1230 committed Jan 1, 2024
1 parent 5e2ac1e commit bf34d18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/app/(admin)/admin/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import NavItem from "./NavItem";
import Download from "./Download";
import Upload from "./Upload";

export const dynamic = "force-dynamic";
export const revalidate = 0;

export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="mx-auto h-full flex flex-col gap-4 p-4">
Expand Down
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import clsx from "clsx";

import "./styles.css";

export const dynamic = "force-dynamic";
export const revalidate = 0;

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
Expand Down
3 changes: 1 addition & 2 deletions src/components/cards/ProjectCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import clsx from "clsx";
import { Star } from "lucide-react";
import { usePlausible } from "next-plausible";

import TagList from "../TagList";
Expand Down Expand Up @@ -53,7 +52,7 @@ export default function ProjectCard({ project }: { project: Project }) {
>
<div>
<p className="flex items-center gap-2 text-xl font-medium">
{project.title} {project.favorite && <Star />}
{project.title}
</p>
<p className="text-lg text-neutral-600 dark:text-neutral-300">
{project.company}
Expand Down

0 comments on commit bf34d18

Please sign in to comment.