【发布时间】:2020-10-26 20:45:30
【问题描述】:
我在将 quasar 项目部署到 Firebase 时遇到问题。它说部署成功,但是两个小时后,这就是网页上显示的内容。
firebase.json
"hosting": {
"public": "dist/spa",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
routes.js
const routes = [
{
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/PageUsers.vue') },
{ path: '/chat/:otherUserId', component: () => import('pages/PageChat.vue') },
{ path: '/auth', component: () => import('pages/AuthPage.vue') }
]
},
// Always leave this as last one,
// but you can also remove it
{
path: '*',
component: () => import('pages/Error404.vue')
}
]
export default routes
我首先运行 quasar build,然后运行 firebase init,然后运行 firebase deploy,但网站上还没有任何显示。关于为什么会发生这种情况的任何想法?
更新:现在同一页面显示在 http://localhost:8080/ 而不是我的项目上
【问题讨论】:
标签: firebase vue.js firebase-hosting quasar-framework quasar