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