Skip to content

Commit bf609b6

Browse files
committed
feat(Docs) Build speed increase
1 parent b8323f6 commit bf609b6

File tree

5 files changed

+590
-405
lines changed

5 files changed

+590
-405
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = withSentryConfig(nextConfig, {
110110
unstable_sentryWebpackPluginOptions: {
111111
applicationKey: 'sentry-docs',
112112
},
113-
113+
useRunAfterProductionCompileHook: true,
114114
_experimental: {
115115
thirdPartyOriginStackFrames: true,
116116
},

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"dev:minimal": "yarn enforce-redirects && concurrently \"node ./src/hotReloadWatcher.mjs\" \"next dev\"",
1616
"dev": "yarn enforce-redirects && concurrently \"yarn sidecar\" \"node ./src/hotReloadWatcher.mjs\" \"next dev\"",
1717
"dev:developer-docs": "yarn enforce-redirects && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn dev",
18-
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
18+
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 && yarn typegen:developer-docs && yarn build",
1919
"build": "yarn enforce-redirects && next build && yarn generate-md-exports",
20+
"build:preview": "yarn enforce-redirects && next build",
2021
"generate-md-exports": "node scripts/generate-md-exports.mjs",
2122
"vercel:build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
2223
"start:dev": "NODE_ENV=development yarn build && yarn start",
2324
"start": "next start",
24-
"lint": "next lint",
25-
"lint:ts": "tsc --skipLibCheck",
25+
"lint:ts": " tsc --skipLibCheck",
2626
"lint:eslint": "eslint \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
2727
"lint:eslint:fix": "eslint --fix \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
2828
"lint:prettier": "prettier --check \"./{src,app,scripts}/**/*.{md,mdx,ts,tsx,js,jsx,mjs}\"",
@@ -55,7 +55,7 @@
5555
"@radix-ui/react-tooltip": "^1.1.4",
5656
"@radix-ui/themes": "^3.1.3",
5757
"@sentry-internal/global-search": "^1.3.0",
58-
"@sentry/nextjs": "^10.0.0",
58+
"@sentry/nextjs": "^10.17.0",
5959
"@types/mdx": "^2.0.9",
6060
"algoliasearch": "^4.23.3",
6161
"dompurify": "3.2.4",
@@ -73,7 +73,7 @@
7373
"mdx-bundler": "^10.0.1",
7474
"mermaid": "^11.11.0",
7575
"micromark": "^4.0.0",
76-
"next": "15.1.7",
76+
"next": "15.4.0",
7777
"next-mdx-remote": "^4.4.1",
7878
"next-plausible": "^3.12.4",
7979
"next-themes": "^0.3.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"exclude": [
7575
"node_modules",
7676
"public",
77-
".cache"
77+
".cache",
7878
],
7979
"include": [
8080
"next-env.d.ts",

verce.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [[ $VERCEL_ENV == "production" ]] ; then
4+
npm run build
5+
else
6+
npm run build:preview
7+
fi

0 commit comments

Comments
 (0)