npm create t3-app@latest
Including:
- Next.js with pages directory
- NextAuth.js
- Prisma
- Tailwind CSS
- tRPC
Run following commands:
npx prisma db push
npm run dev
After commit and push to github repo, install following packages:
npm install contentlayer next-contentlayer rehype-autolink-headings rehype-slug rehype-pretty-code shiki concurrently remark-gfm
- Edit tsconfig.json
- Edit next.config.js
- Edit package.json's scripts to following:
"dev": "concurrently \"contentlayer dev\" \"next dev\"",
"build": "contentlayer build && next build",
- Create contentlayer.config.js and edit it. I refer this repository: https://github.com/shadcn/taxonomy/tree/main
- Create a sample1.mdx file in src/content/notes directory. The sample file includes English and Korean language.
- Run
npm run dev
- Here is where problem occurs. After I run
npm run dev
, the terminal got fronzen. I didn't include.contentlayer
directory inside of.gitignore
to show it only creates caches.
- Remove concurrently and contentlayer command from
package.json
's scripts.