Skip to content

Commit

Permalink
feat: add twoslash
Browse files Browse the repository at this point in the history
  • Loading branch information
jaem1n207 committed Jul 11, 2024
1 parent afc8a68 commit a4776dc
Show file tree
Hide file tree
Showing 6 changed files with 338 additions and 127 deletions.
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const nextConfig = {
fullUrl: true,
},
},
experimental: {
serverComponentsExternalPackages: ['@shikijs/twoslash'],
},
headers() {
return [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@next/bundle-analyzer": "^14.2.3",
"@playwright/test": "^1.44.1",
"@shikijs/transformers": "^1.10.3",
"@shikijs/twoslash": "^1.10.3",
"@tailwindcss/typography": "^0.5.13",
"@testing-library/react": "^16.0.0",
"@types/node": "^20",
Expand All @@ -69,7 +70,6 @@
"prettier": "3.2.5",
"rehype-pretty-code": "^0.13.2",
"rehype-slug": "^6.0.0",
"remark-shiki-twoslash": "^3.1.3",
"remark-smartypants": "^3.0.1",
"shiki": "^1.10.2",
"tailwindcss": "^3.4.1",
Expand Down
Loading

0 comments on commit a4776dc

Please sign in to comment.