-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
38 lines (34 loc) · 1.13 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# example netlify.toml
[build]
command = "yarn run build"
publish = "dist"
[[redirects]]
from = "/api/tranvia"
to = "http://tranviaonline.metrotenerife.com:8180/api/infoStops/infoPanel"
status = 200
[[redirects]]
from = "https://api.tranvia.info/"
to = "http://tranviaonline.metrotenerife.com:8180/api/infoStops/infoPanel"
status = 200
#Redirects secondary domains to the main domain
[[redirects]]
from = "https://tf-tran.netlify.com/*"
to = "https://tranvia.info/:splat"
force = true
status = 301
[[redirects]]
from = "https://tranvia.ml/*"
to = "https://tranvia.info/:splat"
force = true
status = 301
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
## (optional) Settings for Netlify Dev
## https://github.com/netlify/netlify-dev-plugin#project-detection
#[dev]
# command = "yarn start" # Command to start your dev server
# port = 3000 # Port that the dev server will be listening on
# publish = "dist" # Folder with the static content for _redirect file
## more info on configuring this file: https://www.netlify.com/docs/netlify-toml-reference/