Skip to content

Commit

Permalink
feat: ✨ replace contentlayer with velite
Browse files Browse the repository at this point in the history
  • Loading branch information
moinulmoin committed May 21, 2024
1 parent 0813925 commit b877576
Show file tree
Hide file tree
Showing 9 changed files with 1,100 additions and 1,846 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ workbox-*.*
!.env.project
!.env.vault

docker-compose.yml
migrations
.velite
23 changes: 0 additions & 23 deletions contentlayer.config.ts

This file was deleted.

3 changes: 1 addition & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { withContentlayer } = require("next-contentlayer");
const withPWA = require("@ducanh2912/next-pwa").default({
dest: "public",
disable: process.env.NODE_ENV !== "production",
Expand All @@ -18,4 +17,4 @@ const nextConfig = {
trailingSlash: true,
};

module.exports = withPWA(withContentlayer(nextConfig));
module.exports = withPWA(nextConfig);
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"scripts": {
"dev": "prisma generate && next dev",
"dev:email": "email dev -p 9000",
"build": "prisma generate && prisma db push && next build",
"dev:content": "velite build --watch",
"build:content": "velite build --clean",
"build": "pnpm build:content && prisma generate && prisma db push && next build",
"start": "next start",
"lint": "next lint --dir src",
"format": "prettier --write 'src/**/*.{ts,tsx,js,jsx,css,json}'",
Expand Down Expand Up @@ -59,20 +61,19 @@
"autoprefixer": "10.4.16",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"contentlayer": "^0.3.4",
"encoding": "^0.1.13",
"eslint": "8.56.0",
"eslint-config-next": "14.2.2",
"eslint-config-prettier": "^9.1.0",
"eslint-config-prettier": "^8.10.0",
"lefthook": "^1.5.5",
"next-contentlayer": "^0.3.4",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.5.9",
"prisma": "^5.7.0",
"sharp": "^0.33.1",
"tailwind-merge": "^2.3.0",
"tailwindcss": "3.4.1",
"tailwindcss-animate": "^1.0.7",
"typescript": "5.3.3"
"typescript": "5.3.3",
"velite": "0.1.0-rc.3"
}
}
Loading

0 comments on commit b877576

Please sign in to comment.