Skip to content

Commit

Permalink
Update ContentLayer to fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Jul 1, 2024
1 parent 6e49a50 commit 532d7c1
Show file tree
Hide file tree
Showing 4 changed files with 1,175 additions and 1,100 deletions.
2 changes: 1 addition & 1 deletion contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
makeSource,
type FieldDefs,
type ComputedFields,
} from "contentlayer/source-files";
} from "contentlayer2/source-files";
import {
computeSlugFromRawDocumentData,
getAllContentFiles,
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
/** @type {import('next').NextConfig} */

const { withContentlayer } = require("next-contentlayer");
const { withContentlayer } = require("next-contentlayer2");
const redirectsJson = require("./redirects.json");

module.exports = withContentlayer({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"runner": "npx ts-node -r tsconfig-paths/register",
"contentlayer:build": "npx contentlayer build --clearCache",
"contentlayer:build": "npx contentlayer2 build --clearCache",
"dev": "yarn contentlayer:build && next dev -p 3001",
"build": "yarn contentlayer:build && next build",
"start": "next start -p 3001",
Expand All @@ -31,15 +31,15 @@
"eslint": "8.45.0",
"eslint-config-next": "14.1.0",
"next": "14.1.0",
"next-contentlayer": "0.3.4",
"next-contentlayer2": "^0.4.6",
"postcss": "8.4.26",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "3.4.1",
"typescript": "5.3.3"
},
"devDependencies": {
"contentlayer": "0.3.4",
"contentlayer2": "^0.4.6",
"prettier": "^3.2.4"
}
}
Loading

0 comments on commit 532d7c1

Please sign in to comment.