[build]
environment = { PHP_VERSION = "7.4" }
publish = "/build_production"
command = "npm run production"

[context.deploy-preview]
publish = "/build_staging"
command = "npm run staging"

[[redirects]]
from = "/docs/master/*"
to = "/docs/v3/:splat"
status = 302

[[redirects]]
from = "/bee.js"
to = "https://cdn.splitbee.io/sb.js"
status = 200

[[redirects]]
from = "/_hive/*"
to = "https://hive.splitbee.io/:splat"
status = 200
