Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = withSentryConfig(nextConfig, {
unstable_sentryWebpackPluginOptions: {
applicationKey: 'sentry-docs',
},

useRunAfterProductionCompileHook: true,
_experimental: {
thirdPartyOriginStackFrames: true,
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"dev:minimal": "yarn enforce-redirects && concurrently \"node ./src/hotReloadWatcher.mjs\" \"next dev\"",
"dev": "yarn enforce-redirects && concurrently \"yarn sidecar\" \"node ./src/hotReloadWatcher.mjs\" \"next dev\"",
"dev:developer-docs": "yarn enforce-redirects && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn dev",
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 && yarn typegen:developer-docs && yarn build",
"build": "yarn enforce-redirects && next build && yarn generate-md-exports",
"build:preview": "yarn enforce-redirects && next build",
"generate-md-exports": "node scripts/generate-md-exports.mjs",
"vercel:build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
"start:dev": "NODE_ENV=development yarn build && yarn start",
"start": "next start",
"lint": "next lint",
"lint:ts": "tsc --skipLibCheck",
"lint:ts": " tsc --skipLibCheck",
"lint:eslint": "eslint \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
"lint:eslint:fix": "eslint --fix \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
"lint:prettier": "prettier --check \"./{src,app,scripts}/**/*.{md,mdx,ts,tsx,js,jsx,mjs}\"",
Expand Down Expand Up @@ -55,7 +55,7 @@
"@radix-ui/react-tooltip": "^1.1.4",
"@radix-ui/themes": "^3.1.3",
"@sentry-internal/global-search": "^1.3.0",
"@sentry/nextjs": "^10.0.0",
"@sentry/nextjs": "^10.17.0",
"@types/mdx": "^2.0.9",
"algoliasearch": "^4.23.3",
"dompurify": "3.2.4",
Expand All @@ -73,7 +73,7 @@
"mdx-bundler": "^10.0.1",
"mermaid": "^11.11.0",
"micromark": "^4.0.0",
"next": "15.1.7",
"next": "15.4.1",
"next-mdx-remote": "^4.4.1",
"next-plausible": "^3.12.4",
"next-themes": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"exclude": [
"node_modules",
"public",
".cache"
".cache",
],
"include": [
"next-env.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "sh vercel.sh",
"headers": [
{
"source": "/(.*)",
Expand Down
7 changes: 7 additions & 0 deletions vercel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [[ $VERCEL_ENV == "production" ]] ; then
yarn run build
else
yarn run build:preview
fi
Loading
Loading