diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx index 82272ea..39976fc 100644 --- a/app/posts/[slug]/page.tsx +++ b/app/posts/[slug]/page.tsx @@ -48,6 +48,7 @@ async function fetchAllPosts() { } async function fetchPostBySlug(slug: string) { + slug = slug.replace("/posts/", "") const response = await fetch(checkEnvironment() + `/api/posts/slug?slug=${slug}`); return await response.json(); } @@ -144,7 +145,7 @@ export async function generateStaticParams() { return posts.map((post: any) => ({ params: { - slug: post.slug, + slug: "/posts/" + post.slug, } })); } \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index f8474e9..27eb4e7 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.js b/next.config.js index 1df64bc..80b1512 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,5 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: "export", images: { unoptimized: true }, diff --git a/package.json b/package.json index 83e023f..0359184 100644 --- a/package.json +++ b/package.json @@ -31,11 +31,11 @@ "@radix-ui/react-slot": "^1.0.2", "@react-aria/ssr": "^3.9.2", "@react-aria/visually-hidden": "^3.8.10", - "@react-three/drei": "^9.105.4", + "@react-three/drei": "^9.105.5", "@react-three/fiber": "^8.16.2", "@splinetool/react-spline": "^2.2.6", "@types/node": "20.12.7", - "@types/react": "18.3.0", + "@types/react": "18.3.1", "@types/react-dom": "18.3.0", "@vercel/analytics": "^1.2.2", "@vercel/speed-insights": "^1.0.10", @@ -45,7 +45,7 @@ "clsx": "^2.1.1", "cmdk": "^1.0.0", "embla-carousel-react": "^8.0.2", - "eslint": "9.1.1", + "eslint": "7.23.0", "eslint-config-next": "14.2.3", "framer-motion": "^11.1.7", "gray-matter": "^4.0.3", @@ -54,9 +54,9 @@ "next": "^14.2.3", "next-themes": "^0.3.0", "postcss": "8.4.38", - "react": "^18.3.0", + "react": "^18.3.1", "react-content-loader": "^7.0.0", - "react-dom": "^18.3.0", + "react-dom": "^18.3.1", "react-fast-marquee": "^1.6.4", "react-markdown": "^9.0.1", "react-syntax-highlighter": "^15.5.0", @@ -78,13 +78,13 @@ "tailwind-variants": "^0.2.1", "tailwindcss": "3.4.3", "tailwindcss-animate": "^1.0.7", - "three": "^0.164.0", + "three": "^0.164.1", "three-globe": "^2.31.0", "typed.js": "^2.1.0", "typescript": "5.4.5" }, "devDependencies": { - "@tailwindcss/typography": "^0.5.12", + "@tailwindcss/typography": "^0.5.13", "@types/react-syntax-highlighter": "^15.5.11" } }