refactor(h5): H5 静态产物路径改为 backend/dist/h5/
与 PC 的 backend/dist/ 同目录复用,部署时手动把 frontend-h5/dist/* 拷进 backend/dist/h5/ 即可, 不需调整 settings.py 的现有 dist 路径。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
ff3c0d8fea
commit
bf70b3f462
|
|
@ -11,7 +11,7 @@ from rest_framework.response import Response
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
|
|
||||||
|
|
||||||
H5_DIST_ROOT = Path(settings.BASE_DIR).parent / 'frontend-h5' / 'dist'
|
H5_DIST_ROOT = Path(settings.BASE_DIR) / 'dist' / 'h5'
|
||||||
|
|
||||||
|
|
||||||
def serve_h5(request, path=''):
|
def serve_h5(request, path=''):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue