Skip to content

Commit cc4d49f

Browse files
committed
chore: update node and metadata imports
- bump node in ci from 22 to 24 - replace next metadata imports with next/types across pages - update cta import path to components/common/ui/CTA - fix absolute import for DashboardWithKey and other paths - add revalidate exports and clarify sitemap revalidate comment - bump package-lock version to 0.2.0 and prune stale entries
1 parent 0ba1081 commit cc4d49f

22 files changed

Lines changed: 110 additions & 214 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 22
26+
node-version: 24
2727

2828
- name: Install dependencies
2929
run: npm ci

app/(public)/(auth)/login/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import Link from "next/link";
22
import Image from "next/image";
33
import LoginForm from "@/app/components/auth/LoginForm";
4-
import { Metadata } from "next";
5-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6-
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
4+
import { Metadata } from "next/types";
75

86
export const metadata: Metadata = {
97
title: "Login - Devpulse",

app/(public)/(auth)/signup/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import Link from "next/link";
22
import Image from "next/image";
33
import SignupForm from "@/app/components/auth/SignupForm";
4-
import { Metadata } from "next";
5-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
6-
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
4+
import { Metadata } from "next/types";
75

86
export const metadata: Metadata = {
97
title: "Sign Up - Devpulse",

app/(public)/flex/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createClient } from "../../lib/supabase/server";
22
import Footer from "@/app/components/layout/Footer";
3-
import CTA from "@/app/components/layout/CTA";
3+
import CTA from "@/app/components/common/ui/CTA";
44
import BackButton from "@/app/components/leaderboard/BackButton";
55
import Image from "next/image";
66
import { timeAgo } from "@/app/utils/time";
77
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
88
import { faExternalLink } from "@fortawesome/free-solid-svg-icons";
9-
import { Metadata } from "next";
9+
import { Metadata } from "next/types";
1010

1111
export const metadata: Metadata = {
1212
title: "Flexes - Devpulse",

app/(public)/join/[code]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Metadata } from "next";
1+
import { Metadata } from "next/types";
22
import { createClient } from "../../../lib/supabase/server";
33
import { redirect } from "next/navigation";
44

app/(public)/join/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Metadata } from "next";
1+
import { Metadata } from "next/types";
22
import { createClient } from "../../lib/supabase/server";
33
import JoinButton from "../../components/JoinButton";
44
import Footer from "@/app/components/layout/Footer";

app/(public)/leaderboard/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import LeaderboardTable, {
44
} from "../../../components/LeaderboardTable";
55
import LeaderboardHeader from "@/app/components/leaderboard/Header";
66
import Footer from "@/app/components/layout/Footer";
7-
import CTA from "@/app/components/layout/CTA";
7+
import CTA from "@/app/components/common/ui/CTA";
88
import { getUserWithProfile } from "@/app/lib/supabase/help/user";
99

1010
export default async function LeaderboardPage(props: {

app/(public)/leaderboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import BackButton from "@/app/components/leaderboard/BackButton";
22
import { createClient } from "../../lib/supabase/server";
33
import Footer from "@/app/components/layout/Footer";
4-
import CTA from "@/app/components/layout/CTA";
4+
import CTA from "@/app/components/common/ui/CTA";
55
import Image from "next/image";
6-
import { Metadata } from "next";
6+
import { Metadata } from "next/types";
77
import { getUserWithProfile } from "@/app/lib/supabase/help/user";
88
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
99
import { faArrowRight } from "@fortawesome/free-solid-svg-icons";

app/d/admin/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Dashboard from "@/app/components/admin/Dashbord";
22
import { getUserWithProfile } from "@/app/lib/supabase/help/user";
3-
import { Metadata } from "next";
3+
import { Metadata } from "next/types";
44
import { redirect } from "next/navigation";
55

66
export const metadata: Metadata = {

app/d/chat/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Chat from "@/app/components/Chat";
22
import { getUserWithProfile } from "@/app/lib/supabase/help/user";
3-
import { Metadata } from "next";
3+
import { Metadata } from "next/types";
44
import { redirect } from "next/navigation";
55

66
export const metadata: Metadata = {

0 commit comments

Comments
 (0)