mapra99 / cats-wiki

https://demo.cats-wiki.lat/
2 stars 0 forks source link

Rewriting all routes in Vercel to the SPA handler #31

Closed mapra99 closed 3 years ago

mapra99 commented 3 years ago

fixes #29 Added a vercel.json file with configuration to serve all routes with the public/index.html file that contains our SPA, and from that point react-router will handle the route.

vercel[bot] commented 3 years ago

Deployment failed with the following error:

Rewrite at index 0 has invalid `source` pattern "/.*".

Learn More: https://vercel.link/invalid-route-source-pattern

vercel[bot] commented 3 years ago

Deployment failed with the following error:

Rewrite at index 0 has invalid `source` pattern ".*".

Learn More: https://vercel.link/invalid-route-source-pattern

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mapra99/cats-wiki/l055agdkf
✅ Preview: https://cats-wiki-git-vercel-paths.mapra99.vercel.app

vercel[bot] commented 3 years ago

Deployment failed with the following error:

Invalid vercel.json file provided