Skip to content

Seokhyeon315/test-contentlayer-t3stack

Repository files navigation

T3 Stack with Contentlayer

Step 1

npm create t3-app@latest

Including:

Run following commands:

  1. npx prisma db push
  2. 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

Step2

  1. Edit tsconfig.json
  2. Edit next.config.js
  3. Edit package.json's scripts to following:
"dev": "concurrently \"contentlayer dev\" \"next dev\"",
"build": "contentlayer build && next build",
  1. Create contentlayer.config.js and edit it. I refer this repository: https://github.com/shadcn/taxonomy/tree/main
  2. Create a sample1.mdx file in src/content/notes directory. The sample file includes English and Korean language.
  3. Run npm run dev
  4. 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.

Error fix process

  1. Remove concurrently and contentlayer command from package.json's scripts.

About

T3stack with contentlayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published