Maybe the netlify.toml file must be top-level?

This commit is contained in:
Simon Binder 2019-08-17 21:31:30 +02:00
parent 6d209cbe99
commit 4ca7e18027
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 12 additions and 5 deletions

View File

@ -1,5 +0,0 @@
[[redirects]]
from = "https://moor.netlify.com/*"
to = "https://moor.simonbinder.eu/:splat"
status = 301
force = true

12
netlify.toml Normal file
View File

@ -0,0 +1,12 @@
# We use netlify to deploy the documentation.
[build]
base = "docs/"
publish = "docs/public"
command = 'git submodule update --init --recursive && HUGO_ENV="production" hugo'
[[redirects]]
from = "https://moor.netlify.com/*"
to = "https://moor.simonbinder.eu/:splat"
status = 301
force = true