Skip to content

Commit

Permalink
List handbook redirect rule ahead of wildcard rule
Browse files Browse the repository at this point in the history
Netlify uses the first rule that matches, which in this case means that the specific handbook redirect rule needs to come above the `/*` rule.
  • Loading branch information
waxlamp authored Jan 23, 2025
1 parent 3cdadcd commit f273876
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions web/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,15 @@ VITE_APP_DANDI_API_ROOT = "https://api.dandiarchive.org/api/"
VITE_APP_SENTRY_DSN = "https://[email protected]/5196549"
VITE_APP_SENTRY_ENVIRONMENT = "production"


[[redirects]]
from = "/*"
to = "/index.html"
status = 200


[[redirects]]
from = "/handbook"
to = "https://docs.dandiarchive.org"
status = 308

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[plugins]]
package = "/netlify/plugins/server-info-build"

0 comments on commit f273876

Please sign in to comment.