Skip to content

Commit

Permalink
Add netlify redirect rule for Elm apps that handle routing internally
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Jul 10, 2019
1 parent c5405d5 commit 6e7d020
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@
command = "npm run start" # Command to start your dev server
port = 1234 # Port that the dev server will be listening on
publish = "dist" # If you use a _redirect file, provide the path to your static content folder

# The following redirect is intended for use with Elm apps that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit 6e7d020

Please sign in to comment.