Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

build: bump NextJS from to 16 with turbopack enable for web production build boost (#27014)

Bowen Liang071bbc6d74fd
diff --git a/web/app/components/base/ga/index.tsx b/web/app/components/base/ga/index.tsx
index 03475b3bb4b..95e4d3779fe 100644
--- a/web/app/components/base/ga/index.tsx
+++ b/web/app/components/base/ga/index.tsx
@@ -1,4 +1,3 @@
-import type { UnsafeUnwrappedHeaders } from 'next/headers'
import type { FC } from 'react'
import { headers } from 'next/headers'
import Script from 'next/script'
@@ -26,14 +25,14 @@ const extractNonceFromCSP = (cspHeader: string | null): string | undefined => {
return nonceMatch ? nonceMatch[1] : undefined
}
-const GA: FC<IGAProps> = ({
+const GA: FC<IGAProps> = async ({
gaType,
}) => {
if (IS_CE_EDITION)
return null
const cspHeader = IS_PROD
- ? (headers() as unknown as UnsafeUnwrappedHeaders).get('content-security-policy')
+ ? (await headers()).get('content-security-policy')
: null
const nonce = extractNonceFromCSP(cspHeader)
diff --git a/web/next.config.js b/web/next.config.js
index 180ba051970..1457d638c4e 100644
--- a/web/next.config.js
+++ b/web/next.config.js
@@ -1,3 +1,4 @@
+import process from 'node:process'
import withBundleAnalyzerInit from '@next/bundle-analyzer'
import createMDX from '@next/mdx'
import { codeInspectorPlugin } from 'code-inspector-plugin'
@@ -48,13 +49,6 @@ const nextConfig = {
search: '',
})),
},
- // fix all before production. Now it slow the develop speed.
- eslint: {
- // Warning: This allows production builds to successfully complete even if
- // your project has ESLint errors.
- ignoreDuringBuilds: true,
- dirs: ['app', 'bin', 'config', 'context', 'hooks', 'i18n', 'models', 'service', 'test', 'types', 'utils'],
- },
typescript: {
// https://nextjs.org/docs/api-reference/next.config.js/ignoring-typescript-errors
ignoreBuildErrors: true,
diff --git a/web/package.json b/web/package.json
index a5cca731aaf..8762739fbfe 100644
--- a/web/package.json
+++ b/web/package.json
@@ -23,7 +23,7 @@
"and_qq >= 14.9"
],
"scripts": {
- "dev": "cross-env NODE_OPTIONS='--inspect' next dev --turbopack",
+ "dev": "next dev --inspect",
"build": "next build",
"build:docker": "next build && node scripts/optimize-standalone.js",
"start": "node ./scripts/copy-and-start.mjs",
@@ -114,7 +114,7 @@
"mime": "4.1.0",
"mitt": "3.0.1",
"negotiator": "1.0.0",
- "next": "15.5.9",
+ "next": "16.1.4",
"next-themes": "0.4.6",
"nuqs": "2.8.6",
"pinyin-pro": "3.27.0",
@@ -160,9 +160,9 @@
"@eslint-react/eslint-plugin": "2.7.0",
"@mdx-js/loader": "3.1.1",
"@mdx-js/react": "3.1.1",
- "@next/bundle-analyzer": "15.5.9",
- "@next/eslint-plugin-next": "15.5.9",
- "@next/mdx": "15.5.9",
+ "@next/bundle-analyzer": "16.1.4",
+ "@next/eslint-plugin-next": "16.1.4",
+ "@next/mdx": "16.1.4",
"@rgrove/parse-xml": "4.2.0",
"@serwist/turbopack": "9.5.0",
"@storybook/addon-docs": "9.1.13",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index f35bac8a828..ed5b970df3c 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -241,14 +241,14 @@ importers:
specifier: 1.0.0
version: 1.0.0
next:
- specifier: 15.5.9
+ specifier: 16.1.4
next-themes:
specifier: 0.4.6
nuqs:
specifier: 2.8.6
pinyin-pro:
specifier: 3.27.0
version: 3.27.0
@@ -360,7 +360,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 7.0.1
'@chromatic-com/storybook':
specifier: 4.1.1
@@ -374,20 +374,20 @@ importers:
specifier: 3.1.1
version: 3.1.1(@types/[email protected])([email protected])
'@next/bundle-analyzer':
- specifier: 15.5.9
- version: 15.5.9
+ specifier: 16.1.4
+ version: 16.1.4
'@next/eslint-plugin-next':
- specifier: 15.5.9
- version: 15.5.9
+ specifier: 16.1.4
+ version: 16.1.4
'@next/mdx':
- specifier: 15.5.9
+ specifier: 16.1.4
'@rgrove/parse-xml':
specifier: 4.2.0
version: 4.2.0
'@serwist/turbopack':
specifier: 9.5.0
'@storybook/addon-docs':
specifier: 9.1.13
@@ -402,7 +402,7 @@ importers:
'@storybook/nextjs':
specifier: 9.1.13
'@storybook/react':
specifier: 9.1.17
@@ -543,7 +543,7 @@ importers:
version: 8.5.6
react-scan:
specifier: 0.4.3
sass:
specifier: 1.93.2
version: 1.93.2
@@ -834,11 +834,6 @@ packages:
resolution: {integrity: sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==}
- engines: {node: '>=6.0.0'}
- hasBin: true
-
resolution: {integrity: sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==}
engines: {node: '>=6.0.0'}
@@ -1309,10 +1304,6 @@ packages:
resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==}
- engines: {node: '>=6.9.0'}
-
resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==}
engines: {node: '>=6.9.0'}
@@ -2186,17 +2177,17 @@ packages:
'@neoconfetti/[email protected]':
resolution: {integrity: sha512-klcSooChXXOzIm+SE5IISIAn3bYzYfPjbX7D7HoqZL84oAfgREeSg5vSIaSFH+DaGzzvImTyWe1OyrJ67vik4A==}
- resolution: {integrity: sha512-lT1EBpFyGVN9u8M43f2jE78DsCu0A5KPA5OkF5PdIHrKDo4oTJ4lUQKciA9T2u9gccSXIPQcZb5TYkHF4f8iiw==}
+ resolution: {integrity: sha512-JpZKyFfPGVb9Vbbry0vhluvqAUbaGrI368Gjl5UZg+LEZhiBLc74Am+VEtjLp5RWxgn2dC1ymtQh+jeVu74WJQ==}
- resolution: {integrity: sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==}
+ resolution: {integrity: sha512-gkrXnZyxPUy0Gg6SrPQPccbNVLSP3vmW8LU5dwEttEEC1RwDivk8w4O+sZIjFvPrSICXyhQDCG+y3VmjlJf+9A==}
- resolution: {integrity: sha512-kUzXx0iFiXw27cQAViE1yKWnz/nF8JzRmwgMRTMh8qMY90crNsdXJRh2e+R0vBpFR3kk1yvAR7wev7+fCCb79Q==}
+ resolution: {integrity: sha512-38WMjGP8y+1MN4bcZFs+GTcBe0iem5GGTzFE5GWW/dWdRKde7LOXH3lQT2QuoquVWyfl2S0fQRchGmeacGZ4Wg==}
- resolution: {integrity: sha512-qG9GUKUMpnyD5vU+wNGFNsVDxuSdmYDaCEsScPNPIiplzfNSS7VZk1G2yQ2tgXz6KjFncdaqJPuDehFqFy/gjQ==}
+ resolution: {integrity: sha512-lher3tczPFUCKvB2LiUJKacGKTzqwkq0OH2rAubjQoORkeqxCsiD8MxncGGhjEJl/1vO9e803JLMnnYsGJsOZQ==}
peerDependencies:
'@mdx-js/loader': '>=0.15.0'
'@mdx-js/react': '>=0.15.0'
@@ -2206,50 +2197,50 @@ packages:
'@mdx-js/react':
optional: true
- resolution: {integrity: sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==}
+ resolution: {integrity: sha512-T8atLKuvk13XQUdVLCv1ZzMPgLPW0+DWWbHSQXs0/3TjPrKNxTmUIhOEaoEyl3Z82k8h/gEtqyuoZGv6+Ugawg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==}
+ resolution: {integrity: sha512-AKC/qVjUGUQDSPI6gESTx0xOnOPQ5gttogNS3o6bA83yiaSZJek0Am5yXy82F1KcZCx3DdOwdGPZpQCluonuxg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==}
+ resolution: {integrity: sha512-POQ65+pnYOkZNdngWfMEt7r53bzWiKkVNbjpmCt1Zb3V6lxJNXSsjwRuTQ8P/kguxDC8LRkqaL3vvsFrce4dMQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==}
+ resolution: {integrity: sha512-3Wm0zGYVCs6qDFAiSSDL+Z+r46EdtCv/2l+UlIdMbAq9hPJBvGu/rZOeuvCaIUjbArkmXac8HnTyQPJFzFWA0Q==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==}
+ resolution: {integrity: sha512-lWAYAezFinaJiD5Gv8HDidtsZdT3CDaCeqoPoJjeB57OqzvMajpIhlZFce5sCAH6VuX4mdkxCRqecCJFwfm2nQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==}
+ resolution: {integrity: sha512-fHaIpT7x4gA6VQbdEpYUXRGyge/YbRrkG6DXM60XiBqDM2g2NcrsQaIuj375egnGFkJow4RHacgBOEsHfGbiUw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==}
+ resolution: {integrity: sha512-MCrXxrTSE7jPN1NyXJr39E+aNFBrQZtO154LoCz7n99FuKqJDekgxipoodLNWdQP7/DZ5tKMc/efybx1l159hw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==}
+ resolution: {integrity: sha512-JSVlm9MDhmTXw/sO2PE/MRj+G6XOSMZB+BcZ0a7d6KwVFZVpkHcb2okyoYFBaco6LeiL53BBklRlOrDDbOeE5w==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -3724,9 +3715,6 @@ packages:
resolution: {integrity: sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w==}
- '@types/[email protected]':
- resolution: {integrity: sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==}
-
resolution: {integrity: sha512-WJtwWJu7UdlvzEAUm484QNg5eAoq5QR08KDNx7g45Usrs2NtOPiX8ugDqmKdXkyL03rBqU5dYNYVQetEpBHq2g==}
@@ -6648,9 +6636,9 @@ packages:
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
- resolution: {integrity: sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==}
- engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
+ resolution: {integrity: sha512-gKSecROqisnV7Buen5BfjmXAm7Xlpx9o2ueVQRo5DxQcjC8d330dOM1xiGWc2k3Dcnz0In3VybyRPOsudwgiqQ==}
+ engines: {node: '>=20.9.0'}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
@@ -8535,18 +8523,6 @@ packages:
utf-8-validate:
optional: true
- resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}
- engines: {node: '>=10.0.0'}
- peerDependencies:
- bufferutil: ^4.0.1
- utf-8-validate: '>=5.0.2'
- peerDependenciesMeta:
- bufferutil:
- optional: true
- utf-8-validate:
- optional: true
-
resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==}
engines: {node: '>=10.0.0'}
@@ -8816,7 +8792,7 @@ snapshots:
idb: 8.0.3
tslib: 2.8.1
dependencies:
'@antfu/install-pkg': 1.1.0
'@clack/prompts': 0.11.0
@@ -8857,7 +8833,7 @@ snapshots:
yaml-eslint-parser: 1.3.2
optionalDependencies:
'@eslint-react/eslint-plugin': 2.7.0([email protected]([email protected]))([email protected])
- '@next/eslint-plugin-next': 15.5.9
+ '@next/eslint-plugin-next': 16.1.4
eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))
eslint-plugin-react-refresh: 0.4.26([email protected]([email protected]))
transitivePeerDependencies:
@@ -8905,10 +8881,10 @@ snapshots:
'@babel/helper-compilation-targets': 7.27.2
'@babel/helper-module-transforms': 7.28.3(@babel/[email protected])
'@babel/helpers': 7.28.4
- '@babel/parser': 7.28.5
+ '@babel/parser': 7.28.6
'@babel/template': 7.27.2
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
'@jridgewell/remapping': 2.3.5
convert-source-map: 2.0.0
debug: 4.4.3
@@ -8920,15 +8896,15 @@ snapshots:
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.28.6
+ '@babel/types': 7.28.6
'@jridgewell/gen-mapping': 0.3.13
'@jridgewell/trace-mapping': 0.3.31
jsesc: 3.1.0
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
dependencies:
@@ -8974,14 +8950,14 @@ snapshots:
dependencies:
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
transitivePeerDependencies:
- supports-color
@@ -8996,7 +8972,7 @@ snapshots:
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
'@babel/[email protected]': {}
@@ -9021,7 +8997,7 @@ snapshots:
dependencies:
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
transitivePeerDependencies:
- supports-color
@@ -9035,18 +9011,14 @@ snapshots:
dependencies:
'@babel/template': 7.27.2
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/template': 7.27.2
- '@babel/types': 7.28.5
-
- '@babel/[email protected]':
- dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
dependencies:
@@ -9422,7 +9394,7 @@ snapshots:
'@babel/helper-module-imports': 7.27.1
'@babel/helper-plugin-utils': 7.27.1
'@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected])
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
transitivePeerDependencies:
- supports-color
@@ -9602,7 +9574,7 @@ snapshots:
dependencies:
'@babel/core': 7.28.5
'@babel/helper-plugin-utils': 7.27.1
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
esutils: 2.0.3
@@ -9633,26 +9605,21 @@ snapshots:
dependencies:
'@babel/code-frame': 7.27.1
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.28.6
+ '@babel/types': 7.28.6
dependencies:
'@babel/code-frame': 7.27.1
'@babel/generator': 7.28.5
'@babel/helper-globals': 7.28.0
- '@babel/parser': 7.28.5
+ '@babel/parser': 7.28.6
'@babel/template': 7.27.2
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
debug: 4.4.3
transitivePeerDependencies:
- supports-color
- '@babel/[email protected]':
- dependencies:
- '@babel/helper-string-parser': 7.27.1
- '@babel/helper-validator-identifier': 7.28.5
-
dependencies:
'@babel/helper-string-parser': 7.27.1
@@ -10602,48 +10569,48 @@ snapshots:
'@neoconfetti/[email protected]': {}
dependencies:
webpack-bundle-analyzer: 4.10.1
transitivePeerDependencies:
- bufferutil
- utf-8-validate
- '@next/[email protected]': {}
+ '@next/[email protected]': {}
dependencies:
fast-glob: 3.3.1
dependencies:
source-map: 0.7.6
optionalDependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
'@nodelib/[email protected]':
@@ -11397,7 +11364,7 @@ snapshots:
optionalDependencies:
typescript: 5.9.3
dependencies:
'@serwist/build': 9.5.0([email protected])
'@serwist/utils': 9.5.0
@@ -11405,7 +11372,7 @@ snapshots:
'@swc/core': 1.15.8(@swc/[email protected])
esbuild-wasm: 0.27.2
kolorist: 1.8.0
react: 19.2.3
semver: 7.7.3
serwist: 9.5.0([email protected])
@@ -11537,7 +11504,7 @@ snapshots:
react: 19.2.3
react-dom: 19.2.3([email protected])
dependencies:
'@babel/core': 7.28.5
'@babel/plugin-syntax-bigint': 7.8.3(@babel/[email protected])
@@ -11561,7 +11528,7 @@ snapshots:
image-size: 2.0.2
loader-utils: 3.3.1
node-polyfill-webpack-plugin: 2.0.1([email protected]([email protected])([email protected]))
postcss: 8.5.6
@@ -11982,24 +11949,24 @@ snapshots:
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.28.6
+ '@babel/types': 7.28.6
'@types/babel__generator': 7.27.0
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.28.0
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.28.6
+ '@babel/types': 7.28.6
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
dependencies:
@@ -12181,14 +12148,9 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
- dependencies:
- undici-types: 6.21.0
-
dependencies:
undici-types: 6.21.0
- optional: true
dependencies:
@@ -12499,7 +12461,7 @@ snapshots:
dependencies:
- '@babel/parser': 7.28.5
+ '@babel/parser': 7.28.6
'@vue/shared': 3.5.25
entities: 4.5.0
estree-walker: 2.0.2
@@ -13881,7 +13843,7 @@ snapshots:
dependencies:
'@babel/core': 7.28.5
- '@babel/parser': 7.28.5
+ '@babel/parser': 7.28.6
eslint: 9.39.2([email protected])
hermes-parser: 0.25.1
zod: 3.25.76
@@ -15187,8 +15149,8 @@ snapshots:
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.28.6
+ '@babel/types': 7.28.6
source-map-js: 1.2.1
@@ -15814,24 +15776,25 @@ snapshots:
react: 19.2.3
react-dom: 19.2.3([email protected])
dependencies:
- '@next/env': 15.5.9
+ '@next/env': 16.1.4
'@swc/helpers': 0.5.15
+ baseline-browser-mapping: 2.9.5
caniuse-lite: 1.0.30001760
postcss: 8.4.31
react: 19.2.3
react-dom: 19.2.3([email protected])
styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
- '@next/swc-darwin-arm64': 15.5.7
- '@next/swc-darwin-x64': 15.5.7
- '@next/swc-linux-arm64-gnu': 15.5.7
- '@next/swc-linux-arm64-musl': 15.5.7
- '@next/swc-linux-x64-gnu': 15.5.7
- '@next/swc-linux-x64-musl': 15.5.7
- '@next/swc-win32-arm64-msvc': 15.5.7
- '@next/swc-win32-x64-msvc': 15.5.7
+ '@next/swc-darwin-arm64': 16.1.4
+ '@next/swc-darwin-x64': 16.1.4
+ '@next/swc-linux-arm64-gnu': 16.1.4
+ '@next/swc-linux-arm64-musl': 16.1.4
+ '@next/swc-linux-x64-gnu': 16.1.4
+ '@next/swc-linux-x64-musl': 16.1.4
+ '@next/swc-win32-arm64-msvc': 16.1.4
+ '@next/swc-win32-x64-msvc': 16.1.4
'@playwright/test': 1.57.0
sass: 1.93.2
sharp: 0.34.5
@@ -15905,12 +15868,12 @@ snapshots:
dependencies:
boolbase: 1.0.0
dependencies:
'@standard-schema/spec': 1.0.0
react: 19.2.3
optionalDependencies:
@@ -16396,7 +16359,7 @@ snapshots:
dependencies:
'@babel/core': 7.28.5
'@babel/traverse': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
'@types/babel__core': 7.20.5
'@types/babel__traverse': 7.28.0
'@types/doctrine': 0.0.9
@@ -16520,17 +16483,17 @@ snapshots:
tslib: 2.6.2
dependencies:
'@babel/core': 7.28.5
'@babel/generator': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/types': 7.28.6
'@clack/core': 0.3.5
'@clack/prompts': 0.8.2
'@preact/signals': 1.3.2([email protected])
'@rollup/pluginutils': 5.3.0([email protected])
- '@types/node': 20.19.28
+ '@types/node': 20.19.30
bippy: 0.3.34(@types/[email protected])([email protected])
esbuild: 0.27.2
estree-walker: 3.0.3
@@ -16542,7 +16505,7 @@ snapshots:
react-dom: 19.2.3([email protected])
tsx: 4.21.0
optionalDependencies:
unplugin: 2.1.0
transitivePeerDependencies:
- '@types/react'
@@ -17149,7 +17112,7 @@ snapshots:
esbuild-register: 3.6.0([email protected])
recast: 0.23.11
semver: 7.7.3
- ws: 8.18.3
+ ws: 8.19.0
transitivePeerDependencies:
- '@testing-library/dom'
- bufferutil
@@ -17904,8 +17867,6 @@ snapshots:
-
diff --git a/web/middleware.ts b/web/proxy.ts
similarity index 97%
rename from web/middleware.ts
rename to web/proxy.ts
index 9fa7d85b2f7..05436557d7c 100644
--- a/web/middleware.ts
+++ b/web/proxy.ts
@@ -1,4 +1,5 @@
import type { NextRequest } from 'next/server'
+import { Buffer } from 'node:buffer'
import { NextResponse } from 'next/server'
const NECESSARY_DOMAIN = '*.sentry.io http://localhost:* http://127.0.0.1:* https://analytics.google.com googletagmanager.com *.googletagmanager.com https://www.google-analytics.com https://api.github.com https://api2.amplitude.com *.amplitude.com'
@@ -11,7 +12,7 @@ const wrapResponseWithXFrameOptions = (response: NextResponse, pathname: string)
return response
}
-export function middleware(request: NextRequest) {
+export function proxy(request: NextRequest) {
const { pathname } = request.nextUrl
const requestHeaders = new Headers(request.headers)
const response = NextResponse.next({
diff --git a/web/tailwind-common-config.ts b/web/tailwind-common-config.ts
index 6fd8c8fadad..304be919fa3 100644
--- a/web/tailwind-common-config.ts
+++ b/web/tailwind-common-config.ts
@@ -1,6 +1,7 @@
import tailwindTypography from '@tailwindcss/typography'
-import tailwindThemeVarDefine from './themes/tailwind-theme-var-define'
-import typography from './typography'
+// @ts-expect-error workaround for turbopack issue
+import tailwindThemeVarDefine from './themes/tailwind-theme-var-define.ts'
+import typography from './typography.js'
const config = {
theme: {
diff --git a/web/tailwind.config.js b/web/tailwind.config.js
index 3cb71081dae..cdd43dd1e37 100644
--- a/web/tailwind.config.js
+++ b/web/tailwind.config.js
@@ -1,5 +1,5 @@
// import type { Config } from 'tailwindcss'
-import commonConfig from './tailwind-common-config'
+import commonConfig from './tailwind-common-config.ts'
const config = {
content: [
diff --git a/web/tsconfig.json b/web/tsconfig.json
index c7aa998644b..efa5247d136 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -2,7 +2,7 @@
"compilerOptions": {
"incremental": true,
"target": "es2022",
- "jsx": "preserve",
+ "jsx": "react-jsx",
"lib": [
"dom",
"dom.iterable",
@@ -38,7 +38,7 @@
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
- "app/components/develop/Prose.jsx"
+ ".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"