From 6ea0dc6704724ae9b5069fc3a9772f6446adad06 Mon Sep 17 00:00:00 2001 From: koeeenig Date: Sun, 19 Nov 2023 20:17:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20vercel=20url=20rewrite=20f?= =?UTF-8?q?or=20spa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vercel.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 2519a54..e7f1cd3 100644 --- a/vercel.json +++ b/vercel.json @@ -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" + } + ] }