add _redirects

This commit is contained in:
Sara Vieira
2018-11-25 10:23:31 +01:00
parent 654e768c19
commit 5b9a973241
2 changed files with 2 additions and 1 deletions

1
_redirects Normal file
View File

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

View File

@@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"start": "if-env NODE_ENV=production && npm run -s serve || npm run -s dev",
"build": "preact build -p --template src/template.html",
"build": "preact build -p --template src/template.html && cp _redirects build/_redirects",
"serve": "preact build && preact serve",
"deploy": "preact build && now && now alias",
"dev": "preact watch",