yew/firebase.json
Simon 41af85e6c5
Host examples on Firebase (#1582)
* remove getrandom from game_of_life

I know the wasm-bindgen feature is deprecated but this is more convenient for now
and all the other examples use it this way as well.
We can update all of them in one go when rand 0.8 rolls around

* update todomvc README

* clean up yew-macro makefile

See: https://github.com/yewstack/yew/pull/1541#discussion_r488747622

* Use Firebase Hosting
2020-09-22 18:04:32 +02:00

66 lines
1.4 KiB
JSON

{
"hosting": [
{
"target": "website",
"public": "website/build/yew",
"redirects": [
{
"source": "/",
"destination": "/docs/en/intro/",
"type": 301
},
{
"source": "/docs",
"destination": "/docs/en/intro/",
"type": 301
},
{
"regex": "/(docs/)?(?P<lang>en|ja|zh-TW|zh-CN)",
"destination": "/docs/:lang/intro/",
"type": 301
},
{
"source": "/docs/v/zh_cn",
"destination": "/docs/zh-CN/intro/",
"type": 301
},
{
"source": "/docs/v/zh_tw",
"destination": "/docs/zh-TW/intro/",
"type": 301
},
{
"regex": "/docs/v/zh_cn/(.*)",
"destination": "/docs/zh-CN/:1",
"type": 301
},
{
"regex": "/docs/v/zh_tw/(.*)",
"destination": "/docs/zh-TW/:1",
"type": 301
}
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "examples",
"public": "dist",
"rewrites": [
{
"source": "/router/**",
"destination": "/router/index.html"
},
{
"source": "/todomvc/**",
"destination": "/todomvc/index.html"
}
]
}
]
}