mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 17:17:45 +00:00

> [!IMPORTANT] > We need to change the ENV `VERCEL_FORCE_NO_BUILD_CACHE` to `0` which is currently `1` to enable the cache on all deployments This pull request includes several updates to the documentation and benchmarking components, focusing on improving performance, error handling, and compatibility with newer versions of Docusaurus. The key changes include the removal of outdated configurations, updates to dependencies, and enhancements to the `BenchmarkChart` component for better error handling and data validation. ### Documentation and Configuration Updates: * **Removed outdated Babel and Webpack configurations**: The `babel.config.js` file was deleted, and the Webpack configuration was removed from `docusaurus.config.js` to align with the latest Docusaurus setup. [[1]](diffhunk://#diff-2ed4f5b03d34a87ef641e9e36af4a98a1c0ddaf74d07ce93665957be69b7b09aL1-L4) [[2]](diffhunk://#diff-28742c737e523f302e6de471b7fc27284dc8cf720be639e6afe4c17a550cd654L204-L225) * **Added experimental features in Docusaurus**: Introduced a `future` section in `docusaurus.config.js` to enable experimental features like `swcJsLoader`, `rspackBundler`, and `lightningCssMinimizer`, while disabling problematic settings due to known issues. ### Dependency Updates: * **Upgraded Docusaurus and related packages**: Updated dependencies in `package.json` to use Docusaurus version `^3.8.0` and newer versions of associated plugins and themes for improved performance and compatibility. [[1]](diffhunk://#diff-adfa337ce44dc2902621da20152a048dac41878cf3716dfc4cc56d03aa212a56L25-R39) [[2]](diffhunk://#diff-adfa337ce44dc2902621da20152a048dac41878cf3716dfc4cc56d03aa212a56L66-R67) ### Component Enhancements: * **Improved `BenchmarkChart` error handling**: Refactored the `BenchmarkChart` component to validate input data, handle errors gracefully, and provide meaningful fallback messages when data is missing or invalid. [[1]](diffhunk://#diff-ce9fccf51f6b863dd58a39f361a9cf980b10357bccc7381f928788483b30cb0eL4-R21) [[2]](diffhunk://#diff-ce9fccf51f6b863dd58a39f361a9cf980b10357bccc7381f928788483b30cb0eR72-R76) * **Fixed edge cases in chart rendering**: Addressed issues like invalid timestamps, undefined `p99` values, and empty data sets to ensure robust chart generation. [[1]](diffhunk://#diff-ce9fccf51f6b863dd58a39f361a9cf980b10357bccc7381f928788483b30cb0eL19-L29) [[2]](diffhunk://#diff-ce9fccf51f6b863dd58a39f361a9cf980b10357bccc7381f928788483b30cb0eL38-R61) ### Documentation Benchmark Updates: * **Simplified imports in benchmark files**: Replaced the use of `raw-loader` with direct imports for benchmark data in multiple `.mdx` files to streamline the documentation setup. [[1]](diffhunk://#diff-a9710709396e5ff6756aedf89dfcbd62aeea15368ba33bf3932ebf33046a29e8L66-R66) [[2]](diffhunk://#diff-0a9b6103c97c58792450bfd2d337bbb8a6b72df2ae326cc56ebc96e01c0acd6bL35-R35) [[3]](diffhunk://#diff-38f45388e065c57f1282a43bb319354da3c218e96d95ca20f4d11709f48491b8L36-R36) [[4]](diffhunk://#diff-b8e792ebe42fcb16a493e35d23b58a91c2117d949953487e70f379c64e5cb7c0L36-R36) [[5]](diffhunk://#diff-3778acfa893504004008b162fa95f21f1c7c40dcf1868bbbaaa504ac5d51901aL38-R38)
66 lines
2.3 KiB
JSON
66 lines
2.3 KiB
JSON
{
|
|
"name": "zitadel-docs",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"docusaurus": "docusaurus",
|
|
"start": "docusaurus start",
|
|
"start:api": "yarn run generate && docusaurus start",
|
|
"build": "yarn run generate && docusaurus build",
|
|
"swizzle": "docusaurus swizzle",
|
|
"deploy": "docusaurus deploy",
|
|
"clear": "docusaurus clear",
|
|
"serve": "docusaurus serve",
|
|
"write-translations": "docusaurus write-translations",
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
"generate": "yarn run generate:grpc && yarn run generate:apidocs && yarn run generate:configdocs",
|
|
"generate:grpc": "buf generate ../proto",
|
|
"generate:apidocs": "docusaurus gen-api-docs all",
|
|
"generate:configdocs": "cp -r ../cmd/defaults.yaml ./docs/self-hosting/manage/configure/ && cp -r ../cmd/setup/steps.yaml ./docs/self-hosting/manage/configure/",
|
|
"generate:re-gen": "yarn generate:clean-all && yarn generate",
|
|
"generate:clean-all": "docusaurus clean-api-docs all"
|
|
},
|
|
"dependencies": {
|
|
"@bufbuild/buf": "^1.14.0",
|
|
"@docusaurus/core": "^3.8.0",
|
|
"@docusaurus/faster": "^3.8.0",
|
|
"@docusaurus/preset-classic": "^3.8.0",
|
|
"@docusaurus/theme-mermaid": "^3.8.0",
|
|
"@docusaurus/theme-search-algolia": "^3.8.0",
|
|
"@headlessui/react": "^1.7.4",
|
|
"@heroicons/react": "^2.0.13",
|
|
"autoprefixer": "^10.4.13",
|
|
"clsx": "^1.2.1",
|
|
"docusaurus-plugin-image-zoom": "^3.0.1",
|
|
"docusaurus-plugin-openapi-docs": "4.4.0",
|
|
"docusaurus-theme-github-codeblock": "^2.0.2",
|
|
"docusaurus-theme-openapi-docs": "4.4.0",
|
|
"mdx-mermaid": "^2.0.0",
|
|
"postcss": "^8.4.31",
|
|
"raw-loader": "^4.0.2",
|
|
"react": "^18.2.0",
|
|
"react-copy-to-clipboard": "^5.1.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-google-charts": "^5.2.1",
|
|
"react-player": "^2.15.1"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.5%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@docusaurus/module-type-aliases": "^3.8.0",
|
|
"@docusaurus/types": "^3.8.0",
|
|
"tailwindcss": "^3.2.4"
|
|
},
|
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
}
|