docusaurus/netlify.toml
Sébastien Lorber 811c7ae4e9
fix(v2): fix recent baseurl issues (#3093)
* try to fix the baseUrl related issues

* fix some newly detected broken links

* fix baseurl and broken link issues

* try to configure netlify to use baseUrl deployment

* add proper netlify settings?

* add proper netlify settings?

* add proper netlify settings?

* test commit

* try to fix the redirects

* cleanup working conf

* minor redirect fix
2020-07-22 19:55:40 +02:00

27 lines
764 B
TOML

# Note: this file's config override the Netlify UI admin config
# default/production build
[build]
base = "/"
command = "yarn netlify:build:production"
publish = "website/build"
# we build deploy previews with a /build/ baseUrl on purpose
# permits to test that baseUrl works fine (this often breaks!)
[context.deploy-preview]
command = "yarn netlify:build:deployPreview"
publish = "website/netlifyDeploy"
# TODO this does not seem to work
# workaroud: a _redirect file is created in website/netlifyDeploy
# can't we have context-based redirects with Netlify? :'(
[[context.deploy-preview.redirects]]
from = "/build/*"
to = "/build/404.html"
status = 200
[[context.deploy-preview.redirects]]
from = "/*"
to = "/build/"