mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 18:39:14 +03:00
added redirect
This commit is contained in:
parent
383dd35dbc
commit
9995a89818
17
netlify.toml
17
netlify.toml
@ -1,3 +1,18 @@
|
|||||||
[build]
|
[build]
|
||||||
command = "npm run build"
|
command = "npm run build"
|
||||||
publish = "dist"
|
publish = "dist"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/*"
|
||||||
|
to = "/yarkov.tech/en/:splat"
|
||||||
|
|
||||||
|
status = 301
|
||||||
|
|
||||||
|
# By default, redirects won’t be applied if there’s a file with the same
|
||||||
|
# path as the one defined in the `from` property. Setting `force` to `true`
|
||||||
|
# will make the redirect rule take precedence over any existing files.
|
||||||
|
force = true
|
||||||
|
|
||||||
|
# Redirect based on conditions including browser language, geolocation,
|
||||||
|
# identity role, and/or cookie presence.
|
||||||
|
conditions = {Language = ["en"], Country = ["US"]}
|
||||||
Loading…
x
Reference in New Issue
Block a user