修改前端文件路径

This commit is contained in:
thsrite 2023-08-04 08:53:32 +08:00
parent 9677a63244
commit 713800f615
2 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ jobs:
cd MoviePilot-Frontend cd MoviePilot-Frontend
yarn && yarn build yarn && yarn build
cd .. cd ..
mkdir -p public mkdir -p /public
cp -rf ./MoviePilot-Frontend/dist/* ./public/ cp -rf ./MoviePilot-Frontend/dist/* /public/
rm -rf MoviePilot-Frontend rm -rf MoviePilot-Frontend
chmod +x start.sh chmod +x start.sh

View File

@ -30,7 +30,7 @@ http {
# 主目录 # 主目录
expires off; expires off;
add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Cache-Control "no-cache, no-store, must-revalidate";
root /app/public; root /public;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
@ -38,7 +38,7 @@ http {
# 静态资源 # 静态资源
expires 7d; expires 7d;
add_header Cache-Control "public"; add_header Cache-Control "public";
root /app/public; root /public;
} }
location /api/v1/site/icon/ { location /api/v1/site/icon/ {