diff --git a/apps/client/package.json b/apps/client/package.json index 4c4e1587..f920a922 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -10,9 +10,9 @@ "test:e2e": "playwright test" }, "dependencies": { - "@auth/drizzle-adapter": "^0.3.2", - "@sentry/nextjs": "^7.72.0", - "@tanstack/react-query": "^4.35.3", + "@auth/drizzle-adapter": "^0.3.3", + "@sentry/nextjs": "^7.73.0", + "@tanstack/react-query": "^4.35.7", "@upstash/ratelimit": "^0.4.4", "@upstash/redis": "^1.22.1", "@vercel/analytics": "^1.0.2", @@ -22,8 +22,8 @@ "database": "workspace:*", "drizzle-orm": "^0.28.6", "framer-motion": "^10.16.4", - "next": "^13.5.3", - "next-auth": "^4.23.1", + "next": "^13.5.4", + "next-auth": "^4.23.2", "postcss": "8.4.31", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -41,11 +41,11 @@ "devDependencies": { "@playwright/test": "^1.38.1", "@tailwindcss/typography": "^0.5.10", - "@types/node": "^20.8.0", - "@types/react": "^18.2.23", + "@types/node": "^20.8.2", + "@types/react": "^18.2.24", "@types/react-dom": "^18.2.8", "eslint-config-custom": "workspace:*", - "prettier-plugin-tailwindcss": "^0.5.4", + "prettier-plugin-tailwindcss": "^0.5.5", "tsconfig": "workspace:*" }, "engines": { diff --git a/apps/client/src/app/account/page.tsx b/apps/client/src/app/account/page.tsx new file mode 100644 index 00000000..2b804f72 --- /dev/null +++ b/apps/client/src/app/account/page.tsx @@ -0,0 +1,24 @@ +import AccountContent from "@ai/components/account-content"; +import Footer from "@ai/components/footer"; +import Header from "@ai/components/header"; +import { authOptions } from "@ai/pages/api/auth/[...nextauth]"; +import { getServerSession } from "next-auth"; +import { redirect } from "next/navigation"; + +export default async function Account() { + const session = await getServerSession(authOptions()); + + if (!session) { + redirect("/"); + } + + return ( + <> +
+
+ +
+