nitro icon indicating copy to clipboard operation
nitro copied to clipboard

nuxt 3 firebase-hosting not working

Open rendomnet opened this issue 3 years ago • 1 comments

Environment

node: v14.18.1

Reproduction

// REPRODUCTION REPO https://github.com/rendomnet/nuxt3-firebase just change the project-id "project-name" in firebase.json and .firebase.rc

I'm following this QUICK-START guides. nuxt-3 https://v3.nuxtjs.org/getting-started/quick-start

Firebase https://nitro.unjs.io/deploy/providers/firebase.html



npx nuxi init nuxt-app
cd nuxt-app
yarn install

firebase login
firebase init hosting

{
  "functions": { "source": ".output/server" },
  "hosting": [
    {
      "site": "<your_project_id>",
      "public": ".output/public",
      "cleanUrls": true,
      "rewrites": [{ "source": "**", "function": "server" }]
    }
  ]
}
set NITRO_PRESET="firebase yarn build"
firebase emulators:start

Describe the bug

firebase emulators:start

i emulators: Starting emulators: functions, hosting ! functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: auth, firestore, database, pubsub, storage i emulators: Shutting down emulators. i functions: Stopping Functions Emulator i hub: Stopping emulator hub

Additional context

No response

Logs

No response

rendomnet avatar May 30 '22 02:05 rendomnet

Probably a duplicate of #236

abhay-agarwal avatar May 31 '22 18:05 abhay-agarwal

I'd love to see some progress on this front. Firebase seems to be working on this from their side too: https://firebase.google.com/docs/hosting/frameworks-overview At the moment they have next, angular, and express beta support with plans for nuxt down the line.

robokozo avatar Feb 09 '23 14:02 robokozo

Looks like basic Nuxt support was added a few weeks ago: https://github.com/firebase/firebase-tools/releases/tag/v11.22.0

But I have yet to find any proper documentation on how to get it working.

davidstackio avatar Feb 24 '23 20:02 davidstackio

closing in favour of https://github.com/unjs/nitro/issues/1370

The new issue has working instructions that will be added to the documentation shortly.

Hebilicious avatar Jul 01 '23 23:07 Hebilicious