Skip to content

Commit

Permalink
Chore: 更新 vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Mar 25, 2024
1 parent d9abd52 commit efa6a1a
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"version": 2,
"regions": ["hkg1"],
"framework": "hugo",
"installCommand": "npm install && dnf install -y golang.x86_64",
"buildCommand": "npm run build -- $BUILD_DRAFTS",
"outputDirectory": "public",
"env": {
"BUILD_DRAFTS": "--buildDrafts",
"HUGO_VERSION": "0.112.0",
"HUGO_EXTENDED": "true"
},
"routes": [
{
"handle": "filesystem"
},
"alias": ["fixit.lruihao.cn", "pre.fixit.lruihao.cn", "hugofixit"],
"headers": [
{
"source": "/service-worker.min.js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
}
]
}
],
"rewrites": [
{
"src": "/zh-cn/(.*)",
"status": 404,
"dest": "/zh-cn/404.html"
"source": "/zh-cn/(.*)",
"destination": "/zh-cn/404.html"
}
],
"redirects": [
Expand Down

0 comments on commit efa6a1a

Please sign in to comment.