Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

debugging

bautistaaa05ec73a3b5ff
diff --git a/apps/web/src/app/explore/_components/index.tsx b/apps/web/src/app/explore/_components/index.tsx
index 070b4098..617ff518 100644
--- a/apps/web/src/app/explore/_components/index.tsx
+++ b/apps/web/src/app/explore/_components/index.tsx
@@ -11,9 +11,9 @@ export async function Explore() {
return (
<div className="flex flex-col gap-8 py-8 md:gap-10 md:py-10">
<div className="container">
- <h3 className="mb-1 text-2xl font-bold tracking-wide text-neutral-900/40 dark:text-white/40">
+ <div className="mb-1 text-2xl font-bold tracking-wide text-neutral-900/40 dark:text-white/40">
Welcome to
- </h3>
+ </div>
<h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">
TypeHero Explore
</h1>
diff --git a/apps/web/src/app/tracks/_components/index.tsx b/apps/web/src/app/tracks/_components/index.tsx
index cca4d55a..fe427ecf 100644
--- a/apps/web/src/app/tracks/_components/index.tsx
+++ b/apps/web/src/app/tracks/_components/index.tsx
@@ -8,9 +8,9 @@ export async function Tracks() {
return (
<div className="flex flex-col gap-8 py-8 md:gap-10 md:py-10">
<div className="container">
- <h3 className="mb-1 text-2xl font-bold tracking-wide text-neutral-900/40 dark:text-white/40">
+ <div className="mb-1 text-2xl font-bold tracking-wide text-neutral-900/40 dark:text-white/40">
Welcome to
- </h3>
+ </div>
<h1 className="mb-8 text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">
TypeHero Tracks
</h1>
diff --git a/apps/web/src/app/tracks/_components/track-card.tsx b/apps/web/src/app/tracks/_components/track-card.tsx
index 3a3f0385..fc54ce84 100644
--- a/apps/web/src/app/tracks/_components/track-card.tsx
+++ b/apps/web/src/app/tracks/_components/track-card.tsx
@@ -15,10 +15,10 @@ export function TrackCard({ track }: TrackProps) {
// todo: help resolve max-md issue on hover.
return (
<div className="relative w-full">
- <div className="m-2 w-full">
+ <div className="w-full">
<div
className={clsx(
- 'relative inset-0 flex max-w-[400px] flex-col justify-start space-y-4 p-6',
+ 'relative inset-0 flex max-w-[400px] flex-col justify-start space-y-4',
'max-md:scale-110',
)}
>
diff --git a/apps/web/src/app/tracks/_components/track-popular-section.tsx b/apps/web/src/app/tracks/_components/track-popular-section.tsx
index d0c9df1c..5aca5759 100644
--- a/apps/web/src/app/tracks/_components/track-popular-section.tsx
+++ b/apps/web/src/app/tracks/_components/track-popular-section.tsx
@@ -5,16 +5,8 @@ import { TrackCard } from '~/app/tracks/_components/track-card';
export async function PopularTrackSection() {
const tracks = await getTracks();
return (
- <div>
- <div className="container flex items-center justify-between gap-3 px-4 pt-5">
- <h2 className="relative text-3xl font-bold tracking-tight">
- <div
- className={`absolute -left-8 -z-10 h-12 w-32 rounded-full bg-neutral-300/50 blur-3xl ${COLORS_BY_TAGS.POPULAR}`}
- />
- Popular
- </h2>
- </div>
- <section className="grid w-full grid-flow-row grid-cols-1 gap-4 overflow-hidden rounded-[2.5rem] p-8 md:grid-cols-2 lg:grid-cols-3">
+ <div className="container flex items-center justify-between gap-3">
+ <section className="grid w-full grid-flow-row grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3">
{tracks?.map((t) => <TrackCard key={`popular-track-${t.id}`} track={t} />)}
</section>
</div>
diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts
index 05dafb46..ae1f572e 100644
--- a/apps/web/src/middleware.ts
+++ b/apps/web/src/middleware.ts
@@ -2,6 +2,7 @@ import { NextResponse, type NextRequest } from 'next/server';
const STAGING_DOMAIN = 'staging.typehero.dev';
export function middleware(req: NextRequest) {
+ console.log({ VERCEL_ENV: process.env.VERCEL_ENV, VERCEL_URL: process.env.VERCEL_URL });
// skip blocking the request if we are on staging or local
if (!process.env.VERCEL_ENV || process.env.VERCEL_URL === STAGING_DOMAIN) {
return NextResponse.next();