diff --git a/bun.lockb b/bun.lockb index 7ac877e..4bca49a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.mjs b/next.config.mjs index fc5b278..8219780 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { images: { - dangerouslyAllowSVG: true, + unoptimized: true, remotePatterns: [ { protocol: "https", diff --git a/package.json b/package.json index 13ba32b..e4999aa 100644 --- a/package.json +++ b/package.json @@ -3,50 +3,54 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "next dev --turbopack", "build": "next build", "start": "next start", "lint": "next lint", "ui:add": "bunx --bun shadcn-ui@latest add" }, "dependencies": { - "@hookform/resolvers": "^3.3.4", - "@radix-ui/react-avatar": "^1.1.0", - "@radix-ui/react-dialog": "^1.1.1", - "@radix-ui/react-dropdown-menu": "^2.1.1", - "@radix-ui/react-hover-card": "^1.1.1", - "@radix-ui/react-label": "^2.1.0", - "@radix-ui/react-popover": "^1.1.1", - "@radix-ui/react-slot": "^1.1.0", - "@radix-ui/react-switch": "^1.1.0", - "@radix-ui/react-tabs": "^1.1.0", - "@radix-ui/react-tooltip": "^1.1.2", - "class-variance-authority": "^0.7.0", + "@hookform/resolvers": "^3.10.0", + "@radix-ui/react-avatar": "^1.1.2", + "@radix-ui/react-dialog": "^1.1.4", + "@radix-ui/react-dropdown-menu": "^2.1.4", + "@radix-ui/react-hover-card": "^1.1.4", + "@radix-ui/react-label": "^2.1.1", + "@radix-ui/react-popover": "^1.1.4", + "@radix-ui/react-slot": "^1.1.1", + "@radix-ui/react-switch": "^1.1.2", + "@radix-ui/react-tabs": "^1.1.2", + "@radix-ui/react-tooltip": "^1.1.6", + "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", - "cmdk": "^1.0.0", + "cmdk": "^1.0.4", "geist": "^1.3.1", "lucide-react": "^0.441.0", - "next": "^14.2.11", + "next": "15.1.4", "next-themes": "^0.3.0", "nextjs-toploader": "^1.6.12", - "posthog-js": "^1.161.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-hook-form": "^7.51.4", - "sonner": "^1.4.41", - "tailwind-merge": "^2.3.0", + "posthog-js": "^1.205.0", + "react": "19.0.0", + "react-dom": "19.0.0", + "react-hook-form": "^7.54.2", + "sonner": "^1.7.1", + "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", - "vaul": "^0.9.0", - "zod": "^3.23.6" + "vaul": "^0.9.9", + "zod": "^3.24.1" }, "devDependencies": { - "@types/node": "^20", - "@types/react": "^18.3.5", - "@types/react-dom": "^18.3.0", - "eslint": "^8", - "eslint-config-next": "14.2.0", - "postcss": "^8", - "tailwindcss": "^3.4.11", - "typescript": "^5.6.2" + "@types/node": "^20.17.12", + "@types/react": "19.0.3", + "@types/react-dom": "19.0.2", + "eslint": "^8.57.1", + "eslint-config-next": "15.1.4", + "postcss": "^8.4.49", + "tailwindcss": "^3.4.17", + "typescript": "^5.7.2" + }, + "overrides": { + "@types/react": "19.0.3", + "@types/react-dom": "19.0.2" } } diff --git a/src/app/user/[username]/page.tsx b/src/app/user/[username]/page.tsx index 46a6b70..9706835 100644 --- a/src/app/user/[username]/page.tsx +++ b/src/app/user/[username]/page.tsx @@ -1,7 +1,8 @@ import Footer from "@/components/footer"; import { Preview } from "@/components/preview"; -export default function Home({ params }: { params: { username: string } }) { +export default async function Home(props: { params: Promise<{ username: string }> }) { + const params = await props.params; return (
diff --git a/tsconfig.json b/tsconfig.json index 7b28589..f48e7ee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,10 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -18,9 +22,19 @@ } ], "paths": { - "@/*": ["./src/*"] - } + "@/*": [ + "./src/*" + ] + }, + "target": "ES2017" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }