mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
75 lines
1.3 KiB
TOML
75 lines
1.3 KiB
TOML
[build]
|
||
publish = "dist/"
|
||
command = "npm run generate --quiet && npm test"
|
||
# functions = "functions/"
|
||
|
||
|
||
|
||
[build.environment]
|
||
NPM_FLAGS = "--no-optional"
|
||
CI = "1"
|
||
|
||
|
||
|
||
|
||
# Production context: all deploys from the Production branch set in your site’s
|
||
# 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
|