Skip to content

Instantly share code, notes, and snippets.

@Lostovayne
Last active December 25, 2023 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lostovayne/988e7a3ef3eec36ddc249cdabc6afafa to your computer and use it in GitHub Desktop.
Save Lostovayne/988e7a3ef3eec36ddc249cdabc6afafa to your computer and use it in GitHub Desktop.
Configuracion de una spa con react en vercel usando este archivo , escoger una de las 2 versiones que estan abajo, el archivo debe tener el nombre definido ahi
{
"rutas": [{ "src": "/[^.]+", "dest": "/", "status": 200 }]
}
//probar una de las 2
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" } ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment