Skip to content

Commit

Permalink
feat: add dynamicParams route config for blogs/[slug]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsnayak committed Dec 5, 2024
1 parent e2d85a0 commit 11e2027
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions app/blogs/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export async function generateMetadata({
};
}

export const dynamicParams = false;

export default async function BlogPage({ params }: Readonly<BlogProps>) {
const { slug } = await params;
const { publishedAt, summary, title } = await getBlogMetadataBySlug(slug);
Expand Down
Binary file modified bun.lockb
Binary file not shown.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"db:up": "drizzle-kit up"
},
"dependencies": {
"@ai-sdk/openai": "^1.0.6",
"@ai-sdk/openai": "^1.0.7",
"@auth/drizzle-adapter": "^1.7.4",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.16.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@icons-pack/react-simple-icons": "^10.2.0",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.0.4-canary.41",
"@next/mdx": "^15.0.4-canary.42",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
Expand All @@ -40,12 +40,12 @@
"@types/node": "^22.10.1",
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@upstash/ratelimit": "^2.0.4",
"@upstash/ratelimit": "^2.0.5",
"@vercel/analytics": "^1.4.1",
"@vercel/kv": "^3.0.0",
"@vercel/postgres": "^0.10.0",
"@vercel/speed-insights": "^1.1.0",
"ai": "^4.0.11",
"ai": "^4.0.12",
"autoprefixer": "^10.4.20",
"babel-plugin-react-compiler": "^19.0.0-beta-df7b47d-20241124",
"class-variance-authority": "^0.7.1",
Expand All @@ -56,13 +56,13 @@
"drizzle-orm": "^0.37.0",
"drizzle-zod": "^0.5.1",
"eslint": "^9.16.0",
"eslint-config-next": "^15.0.4-canary.41",
"eslint-config-next": "^15.0.4-canary.42",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-compiler": "^19.0.0-beta-df7b47d-20241124",
"framer-motion": "12.0.0-alpha.2",
"langchain": "^0.3.6",
"lucide-react": "0.467.0",
"next": "^15.0.4-canary.41",
"next": "^15.0.4-canary.42",
"next-auth": "5.0.0-beta.25",
"next-themes": "^0.4.3",
"next-view-transitions": "^0.3.4",
Expand Down

1 comment on commit 11e2027

@vercel
Copy link

@vercel vercel bot commented on 11e2027 Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.