Skip to content

Commit 107d032

Browse files
committed
upgrade next and add shikitwoslash to serverexternalpackages config
1 parent d478484 commit 107d032

File tree

3 files changed

+477
-10
lines changed

3 files changed

+477
-10
lines changed

examples/app-router/next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
serverExternalPackages: ['@shikijs/twoslash'],
4+
};
35

46
module.exports = nextConfig;

examples/app-router/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"dependencies": {
1212
"@mintlify/mdx": "workspace:^",
13-
"next": "14.0.4",
14-
"react": "^18",
15-
"react-dom": "^18"
13+
"next": "15.4.2",
14+
"react": "18.3.1",
15+
"react-dom": "18.3.1"
1616
},
1717
"devDependencies": {
1818
"@tailwindcss/typography": "^0.5.10",

0 commit comments

Comments
 (0)