doesitarm/netlify.toml
2021-06-11 16:28:45 -05:00

79 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file
[build]
publish = "dist/"
command = "npm run generate --quiet && npm test"
# functions = "functions/"
[build.environment]
NPM_FLAGS = "--no-optional"
CI = "1"
[[plugins]]
package = "netlify-plugin-cache-folder"
# Production context: all deploys from the Production branch set in your sites
# deploy contexts will inherit these settings.
[context.production]
command = "npm run generate --quiet && npm test"
environment = { NODE_ENV = "PRODUCTION" }
# https://docs.netlify.com/configure-builds/file-based-configuration/#redirects
# old node redirect
[[redirects]]
from = "/app/node"
to = "/app/nodejs"
status = 301
# old git redirect
[[redirects]]
from = "/app/git"
to = "/app/git-version-control"
status = 301
# old electron redirect
[[redirects]]
from = "/app/electron"
to = "/app/electron-framework"
status = 301
# imac redirect
[[redirects]]
from = "/device/apple-silicon-imac"
to = "/device/m1-imac/"
status = 307
# Category Redirects
[[redirects]]
from = "/kind/entertainment"
to = "/kind/entertainment-and-media-apps/"
status = 301
[[redirects]]
from = "/kind/photo-tools"
to = "/kind/photo-and-graphic-tools/"
status = 301
# Other Redirects
# Random broken link from Chinese sites
[[redirects]]
from = "/。"
to = "/"
status = 301
[[redirects]]
from = "/%E3%80%82"
to = "/"
status = 301