mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 02:47:49 +00:00
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:
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',
|
||||
|
||||
Reference in new issue
Block a user