mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
63 lines
1.4 KiB
JSON
63 lines
1.4 KiB
JSON
{
|
|
"hosting": [
|
|
{
|
|
"target": "website",
|
|
"public": "website/build/",
|
|
"cleanUrls": true,
|
|
"redirects": [
|
|
// `/intro` -> `/` (2020-10-15)
|
|
{
|
|
"source": "/",
|
|
"destination": "/docs/index/",
|
|
"type": 302
|
|
},
|
|
{
|
|
"source": "/docs/:lang/index",
|
|
"destination": "/:lang/docs/index",
|
|
"type": 301
|
|
},
|
|
{
|
|
"source": "/docs/:lang/next/intro",
|
|
"destination": "/:lang/docs/next/index",
|
|
"type": 301
|
|
},
|
|
// legacy (2020-08-15)
|
|
{
|
|
"source": "/docs/v/zh_cn",
|
|
"destination": "/zh-CN/docs/",
|
|
"type": 301
|
|
},
|
|
{
|
|
"source": "/docs/v/zh_tw",
|
|
"destination": "/zh-TW/docs/",
|
|
"type": 301
|
|
},
|
|
{
|
|
"regex": "/docs/v/zh_cn/(.*)",
|
|
"destination": "/zh-CN/docs/:1",
|
|
"type": 301
|
|
},
|
|
{
|
|
"regex": "/docs/v/zh_tw/(.*)",
|
|
"destination": "/zh-TW/docs/:1",
|
|
"type": 301
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"target": "examples",
|
|
"public": "dist",
|
|
"rewrites": [
|
|
{
|
|
"source": "/router/**",
|
|
"destination": "/router/index.html"
|
|
},
|
|
{
|
|
"source": "/todomvc/**",
|
|
"destination": "/todomvc/index.html"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|