Skip to content

Commit d181e6b

Browse files
committed
Fix client side generation with firebase
1 parent bd8012f commit d181e6b

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

web/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"rewrites": [
66
{
77
"source": "**",
8-
"destination": "/index.html"
8+
"destination": "/200.html"
99
}
1010
]
1111
}

web/layouts/default.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
</v-navigation-drawer>
2121
<v-main :class="{ 'has-drawer': hasDrawer && $vuetify.breakpoint.lgAndUp }">
2222
<toast></toast>
23-
<client-only>
24-
<Nuxt v-if="$store.getters.authStateChanged" />
25-
<loading-dashboard v-else></loading-dashboard>
26-
</client-only>
23+
<Nuxt v-if="$store.getters.authStateChanged" />
24+
<loading-dashboard v-else></loading-dashboard>
2725
</v-main>
2826
</v-app>
2927
</template>

web/pages/router.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<v-container fluid fill-height>
3+
<v-progress-circular
4+
indeterminate
5+
size="160"
6+
class="mt-8 mx-auto"
7+
color="primary"
8+
></v-progress-circular>
9+
</v-container>
10+
</template>
11+
12+
<script lang="ts">
13+
import Vue from 'vue'
14+
15+
export default Vue.extend({
16+
name: 'Router',
17+
mounted() {
18+
console.log('routing to new page', this.$route.path)
19+
this.$router.push({
20+
path: this.$route.path,
21+
})
22+
},
23+
})
24+
</script>

0 commit comments

Comments
 (0)