Replace _redirects with netlify.toml config

This commit is contained in:
Maciej Pędzich 2023-07-03 10:24:48 +02:00
parent 0db34f1145
commit 68567cc0e1
2 changed files with 12 additions and 1 deletions

View File

@ -1 +0,0 @@
/* /index.html 200

12
netlify.toml Normal file
View File

@ -0,0 +1,12 @@
# example netlify.toml
[build]
command = "vite build"
functions = "netlify/functions"
publish = "dist"
## Uncomment to use this redirect for Single Page Applications
## Not needed for static site generators.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200