Skip to content

Commit

Permalink
ja: update guide/routing (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
aytdm authored and inouetakuya committed Sep 5, 2019
1 parent 5f95828 commit b39170c
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions ja/guide/routing.md
Expand Up @@ -324,30 +324,11 @@ GitHub Pages と Netlify は `404.html` ファイルを自動的に認識する

#### Firebase ホスティング向けの実装

Firebase ホスティング上でフォールバックを使用するためには、`generate.fallback``true` にし、以下の設定を使用します。 ([さらに詳しく](https://firebase.google.com/docs/hosting/url-redirects-rewrites#section-rewrites)):

```json
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/404.html"
}
]
}
}
```
Firebase ホスティングは `404.html` ファイルを自動的に[処理できる](https://firebase.google.com/docs/hosting/full-config#404)ため、`generate.fallback``true` に設定すると、404 のデフォルトレスポンスコードと一緒にエラーページがレンダリングされます。

## トランジション

Nuxt.js では [<transition> コンポーネントを使って、ページ間を遷移する際のトランジション/アニメーションを行うことができます。</transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components)
Nuxt.js では [`<transition>`](https://jp.vuejs.org/v2/guide/transitions.html#%E5%8D%98%E4%B8%80%E8%A6%81%E7%B4%A0-%E3%82%B3%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%8D%E3%83%B3%E3%83%88%E3%81%AE%E3%83%88%E3%83%A9%E3%83%B3%E3%82%B8%E3%82%B7%E3%83%A7%E3%83%B3) コンポーネントを使って、ページ間を遷移する際のトランジション/アニメーションを行うことができます。

### グローバルな設定

Expand Down

0 comments on commit b39170c

Please sign in to comment.