Skip to content

Commit

Permalink
🔧 Add vercel url rewrite for spa
Browse files Browse the repository at this point in the history
  • Loading branch information
koeeenig committed Nov 19, 2023
1 parent 0467f70 commit 6ea0dc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"buildCommand": "dotnet build ; dotnet publish ./src/BlazeKit.Site",
"installCommand": "rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm ; yum -y install dotnet-sdk-7.0 ; dotnet --version",
"outputDirectory": ".vercel/output/static"
"outputDirectory": ".vercel/output/static",
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}

0 comments on commit 6ea0dc6

Please sign in to comment.