Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic netlify deploy configuration #558

Open
wants to merge 7 commits into
base: v11
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Netlify deploy configuration
# See https://www.netlify.com/docs/continuous-deployment/#deploy-contexts

# Global settings applied to the whole site.
#
# “publish” is the directory to publish (relative to root of your repo),
# “command” is your build command,
# “base” is directory to change to before starting build. if you set base:
# that is where we will look for package.json/.nvmrc/etc not repo root!

[build]
publish = "site-build"
command = "npm run generate-site"

[[redirects]]
from = "/versions/:majorversion/*"
to = "https://:majorversion--clever-morse-e60990.netlify.com/:splat"
status = 200

[[redirects]]
from = "/unexpected-*"
to = "https://unexpectedjs.github.io/unexpected-:splat"
status = 200