Temporary fix fpr Redoc (#13201) (#13211)

Added temporary fix for Redoc distribution URL as Redoc 3 is an ES-module-only and drf-spectacular's template can't load (tfranzel/drf-spectacular#1543)

(cherry picked from commit 08dad19122)

Co-authored-by: sufyanaslam198 <sufyanmukadam98@gmail.com>
This commit is contained in:
github-actions[bot]andsufyanaslam198 authored and GitHub committed 2026-11-07 11:44:04 +11:00
1 parent 7a2f00e405
commit 02d5b23388
1 file changed
+2
@@ -20,6 +20,8 @@ def get_spectacular_settings():
'SERVE_INCLUDE_SCHEMA': False,
'SERVE_PERMISSIONS': ['InvenTree.permissions.AllowAnyOrReadScope'],
'SCHEMA_PATH_PREFIX': '/api/',
# Temp Fix for Redoc
'REDOC_DIST': 'https://cdn.jsdelivr.net/npm/redoc@2.5.4',
'POSTPROCESSING_HOOKS': [
'InvenTree.schema.postprocess_schema_enums',
'InvenTree.schema.postprocess_required_nullable',