Add redirect generator to make Netlify's CDN redirect to the right places.

Netlify will redirect with a 301 status to the right places without the
need of a custom javascript file.

The current redirects.js is not removed so production can keep working
as it is for now.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera
2017-01-17 08:41:49 -08:00
committed by Andrew Chen
parent d268a3eaf4
commit e64c482469
4 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
[build]
command = "make build"
command = "make build generate-redirects"
publish = "_site"
[context.deploy-preview]
command = "make build-preview"
command = "make build-preview generate-redirects"