docs(zh): add comment translations in deploy.md (#5024)

pull/5025/head
WuMingDao 10 months ago committed by GitHub
parent be260fda6e
commit 8da5e74948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -308,20 +308,20 @@ server {
index index.html; index index.html;
location / { location / {
# content location # 内容位置
root /app; root /app;
# exact matches -> reverse clean urls -> folders -> not found # 完全匹配 -> 反向清理 url -> 文件夹 -> 没有发现
try_files $uri $uri.html $uri/ =404; try_files $uri $uri.html $uri/ =404;
# non existent pages # 不存在的页面
error_page 404 /404.html; error_page 404 /404.html;
# a folder without index.html raises 403 in this setup # 在此设置中,如果文件夹没有 index.html就会引发 403 错误
error_page 403 /404.html; error_page 403 /404.html;
# adjust caching headers # 调整缓存标头
# files in the assets folder have hashes filenames # assets 文件夹中的文件都有哈希文件名
location ~* ^/assets/ { location ~* ^/assets/ {
expires 1y; expires 1y;
add_header Cache-Control "public, immutable"; add_header Cache-Control "public, immutable";

Loading…
Cancel
Save