docusaurus/website/netlify.toml
Sébastien Lorber 5359d61d9e
fix(v2): allow using classic theme/preset without the docs plugin (#3382)
* deprecated nextVersionLabel option

* useActivePlugin failfast option

* remove deprecated option nextVersionLabel

* routeBasePath: '' should be forbidden

* routeBasePath: '' should be forbidden

* Docs: do not show version badge if there is only 1 version: https://github.com/facebook/docusaurus/issues/3362

* allow sidebars file to not exist: fallback to empty sidebars
https://githu.com/facebook/docusaurus/issues/3366

* Ability to use classic theme/preset while not using docs/pages without trouble.
https://github.com/facebook/docusaurus/issues/3360

* fix netlify redirects

* do not throw if useDocs do not load?

* netlify deploy typo

* try to fix useDocs

* docs(v2): update Deploy to Vercel guide (#3344)

* filter annoying useDocs conditional require warning

* netlify deploy preview homepage

* typo

* try to trigger again CLA bot

Co-authored-by: Sam Ko <sam@vercel.com>
2020-09-01 19:38:11 +02:00

35 lines
1 KiB
TOML

# Note: this file's config override the Netlify UI admin config
# default/production build
[build]
base = "/"
command = "yarn workspace docusaurus-2-website 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 workspace docusaurus-2-website netlify:build:deployPreview"
publish = "website/netlifyDeployPreview"
# TODO this does not seem to work
# workaroud: a _redirect file is created in npm/yarn scripts
# can't we have context-based redirects with Netlify? :'(
[[context.deploy-preview.redirects]]
from = "/classic/*"
to = "/classic/404.html"
status = 200
[[context.deploy-preview.redirects]]
from = "/bootstrap/*"
to = "/bootstrap/404.html"
status = 200
[[context.deploy-preview.redirects]]
from = "/blog-only/*"
to = "/blog-only/404.html"
status = 200
[[context.deploy-preview.redirects]]
from = "/*"
to = "/classic/"