I've tried many approches to upload and run the node/vue project on the firebase hosting, but didn't succeed.
I've followed official guidelines on Firecast youtube channel, but it seems that I'm missing something.
My vue.js app in SSR mode works fine on localhost. It is slighly different than the basic node/express app. Once deployed to Firebase Hosting, I have Error 404 page. (Quasar Documentation on SSR deploy)
I've build an app with quasar build -m ssr
, which generates a new folder dist/ssr
folder.
firebase.json
file in the root of my project where I've initiated a firebase project with firebase init
contains following lines:
{
"hosting": {
"public": "dist/ssr",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"function": "app"
}
]
}
}
Before deploying to firebase hosting, I'm trying to test it with firebase serve
but when I access a page on localhost:5000
I get an error 404 or No-content.
Anyone have a solution ?