From 9e4ef90d7349bb9458e5985bef41493da4899ad7 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:54:45 -0500 Subject: [PATCH] Started Migration to Fluid-Tailwind and Misc Fixes --- app/(main)/_components/footer.tsx | 1 - app/(main)/blog/page.tsx | 2 +- app/(main)/blog/posts/[post]/page.tsx | 4 ++-- app/(main)/blog/posts/blog-welcome.mdx | 2 +- app/(main)/layout.tsx | 6 +----- app/(main)/page.tsx | 8 ++++---- app/api/cards/[cardId]/logs/route.ts | 8 ++++++-- app/api/cards/[cardId]/route.ts | 6 +++++- sentry.client.config.ts | 2 +- 9 files changed, 21 insertions(+), 18 deletions(-) diff --git a/app/(main)/_components/footer.tsx b/app/(main)/_components/footer.tsx index 6d749fe..bf6da7a 100644 --- a/app/(main)/_components/footer.tsx +++ b/app/(main)/_components/footer.tsx @@ -1,6 +1,5 @@ import { Logo } from '@/components/logo'; import { Button } from '@/components/ui/button'; -import Link from 'next/link'; export const Footer = () => { return ( diff --git a/app/(main)/blog/page.tsx b/app/(main)/blog/page.tsx index 0b4accb..4e956f5 100644 --- a/app/(main)/blog/page.tsx +++ b/app/(main)/blog/page.tsx @@ -6,7 +6,7 @@ const BlogPage = () => { return (

Blog

-
+
{allBlogPosts.map((post) => (
diff --git a/app/(main)/blog/posts/[post]/page.tsx b/app/(main)/blog/posts/[post]/page.tsx index 38d1d15..f14cc20 100644 --- a/app/(main)/blog/posts/[post]/page.tsx +++ b/app/(main)/blog/posts/[post]/page.tsx @@ -19,9 +19,9 @@ const PostPage = async (props: PostPageProps) => { } return ( -
+
{ return (
- -
{children}
+
{children}
); diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index fa9d594..ab5657e 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -15,7 +15,7 @@ const textFont = Poppins({ const MarketingPage = () => { return ( -
+
{ No 1 task management app
-

+

Tasko helps teams move

-
+
Work forward
diff --git a/app/api/cards/[cardId]/logs/route.ts b/app/api/cards/[cardId]/logs/route.ts index e9fcb77..6dcaa9d 100644 --- a/app/api/cards/[cardId]/logs/route.ts +++ b/app/api/cards/[cardId]/logs/route.ts @@ -27,14 +27,18 @@ export async function GET( createdAt: 'desc', }, take: 3, + cacheStrategy: { + ttl: 30, + swr: 60, + }, }); return new NextResponse(JSON.stringify(auditLogs), { status: 200, headers: { - 'Cache-Control': 'public, s-maxage=5', + 'Cache-Control': 'public, s-maxage=1', 'CDN-Cache-Control': 'public, s-maxage=60', - 'Vercel-CDN-Cache-Control': 'public, s-maxage=3600', + 'Vercel-CDN-Cache-Control': 'public, s-maxage=120', }, }); } catch (error) { diff --git a/app/api/cards/[cardId]/route.ts b/app/api/cards/[cardId]/route.ts index 1f17946..27ebd8d 100644 --- a/app/api/cards/[cardId]/route.ts +++ b/app/api/cards/[cardId]/route.ts @@ -32,6 +32,10 @@ export async function GET( }, }, }, + cacheStrategy: { + ttl: 30, + swr: 60, + }, }); return new NextResponse(JSON.stringify(card), { @@ -39,7 +43,7 @@ export async function GET( headers: { 'Cache-Control': 'public, s-maxage=1', 'CDN-Cache-Control': 'public, s-maxage=60', - 'Vercel-CDN-Cache-Control': 'public, s-maxage=3600', + 'Vercel-CDN-Cache-Control': 'public, s-maxage=120', }, }); } catch (error) { diff --git a/sentry.client.config.ts b/sentry.client.config.ts index 0af7101..d174104 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -35,7 +35,7 @@ Sentry.init({ profilesSampleRate: 1.0, // Define how likely Replay events are sampled. - replaysSessionSampleRate: 0.5, + replaysSessionSampleRate: 0.25, // Define how likely Replay events are sampled when an error occurs. replaysOnErrorSampleRate: 1.0,