Skip to content

Commit

Permalink
Use the active Contentlayer2 fork
Browse files Browse the repository at this point in the history
Contentlayer is determining the best course of action for maintenance
going forward, in the meantime there is an active contentlayer2 fork,
      which the community is using.
  • Loading branch information
venables committed May 10, 2024
1 parent 9d4fec1 commit ca78f21
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- [React Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components) by default.
- [Drizzle](https://orm.drizzle.team) database ORM, configured for [PostgreSQL](https://www.postgresql.org/) and [Drizzle Kit](https://orm.drizzle.team/kit-docs/overview)
- Insanely fast linting and formatting via [Biome](https://bimoejs.dev) for readable, safe code.
- [Contentlayer](https://contentlayer.dev) for Markdown content
- [Contentlayer](https://contentlayer.dev) for Markdown content (using the [active fork](https://github.com/timlrx/contentlayer2))
- [Typescript](https://www.typescriptlang.org/) for a rock-solid codebase
- [TailwindCSS](https://tailwindcss.com/) for utility-first CSS.
- Gorgeous UI built with [Radix](https://www.radix-ui.com/) and [shadcn/ui](https://ui.shadcn.com/).
Expand Down
2 changes: 1 addition & 1 deletion app/legal/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type LegalPage, allLegalPages } from "contentlayer/generated"
import { format, parseISO } from "date-fns"
import { useMDXComponent } from "next-contentlayer/hooks"
import { useMDXComponent } from "next-contentlayer2/hooks"

function getSlug(page: LegalPage) {
return page._raw.flattenedPath.replace("legal/", "")
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion contentlayer.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineDocumentType, makeSource } from "contentlayer/source-files"
import { defineDocumentType, makeSource } from "contentlayer2/source-files"

export const LegalPage = defineDocumentType(() => ({
name: "LegalPage",
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fileURLToPath } from "node:url"
import createJiti from "jiti"
import { withContentlayer } from "next-contentlayer"
import { withContentlayer } from "next-contentlayer2"
import { createSecureHeaders } from "next-secure-headers"

const jiti = createJiti(fileURLToPath(import.meta.url))
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"setup": "./bin/setup",
"start": "next start",
"test": "vitest run",
"type-check": "contentlayer build > /dev/null 2>&1 || true && tsc --noEmit --pretty"
"type-check": "contentlayer2 build && tsc --noEmit --pretty"
},
"dependencies": {
"@auth/core": "^0.30.0",
Expand All @@ -37,15 +37,15 @@
"@t3-oss/env-nextjs": "^0.10.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"contentlayer": "^0.3.4",
"contentlayer2": "^0.4.6",
"date-fns": "^3.6.0",
"drizzle-orm": "^0.30.10",
"geist": "^1.3.0",
"jsx-email": "^1.12.1",
"lucide-react": "^0.378.0",
"next": "^14.2.3",
"next-auth": "5.0.0-beta.16",
"next-contentlayer": "^0.3.4",
"next-contentlayer2": "^0.4.6",
"next-themes": "^0.3.0",
"nextjs-google-analytics": "^2.3.3",
"react": "^18.3.1",
Expand Down

0 comments on commit ca78f21

Please sign in to comment.