Temporary fix fpr Redoc (#13201)

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)
This commit is contained in:
sufyanaslam198 authored and GitHub committed 2026-11-07 10:08:17 +11:00
1 parent f283aa0ca6
commit 08dad19122
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',