Skip to content

Commit

Permalink
chore: vercel rewrites (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Feb 13, 2024
1 parent d8b3a78 commit 35b141f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion example/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"$schema": "https://openapi.vercel.sh/vercel.json",
"installCommand": "pnpm install",
"buildCommand": "pnpm turbo run generate",
"outputDirectory": ".contented/.preview/out/"
"outputDirectory": ".contented/.preview/out/",
"rewrites": [
{ "source": "/", "destination": "/contented/about.html" },
{
"source": "/:path*",
"destination": "/:path*.html"
}
]
}
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dependsOn": ["^build"]
},
"generate": {
"cache": false,
"inputs": ["**/.md"],
"dependsOn": ["build"]
},
Expand Down

0 comments on commit 35b141f

Please sign in to comment.