Skip to content

Commit

Permalink
Start a basic netlify _redirects file (esphome#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored May 10, 2022
1 parent e3482a8 commit 564aa0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/esphomeyaml/* /:splat 301

# Moved components
# e.g: /components/sensors/abc.html /components/sensors/xyz.html 301
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@

[context.production]
environment = { BASE_URL = "https://esphome.io", PRODUCTION = "YES" }

# A basic redirect rule
[[redirects]]
from = "/esphomeyaml/*"
to = "/:splat"

0 comments on commit 564aa0d

Please sign in to comment.