Use routes instead of handle:filesystem (#94)

This commit is contained in:
Steven 2019-08-12 09:04:24 -07:00 committed by GitHub
parent c1360cc135
commit d2faa8238e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
{
"regions": ["all"],
"public": true,
"version": 2,
"routes": [
{ "handle": "filesystem" },
{ "src": "/", "dest": "/index.html" },
{ "src": "/(favicon.ico|style.css|robots.txt|dist/web/index.js)", "dest": "/$1" },
{ "src": "/(.+)", "dest": "/api" }
]
}