question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to deploy Firebase Hosting?

See original GitHub issue

i have these firebase.json

{
  "firestore": {
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  },
  "functions": {
    "source": ".output/server",
    "runtime": "nodejs16"
  },
  "hosting": {
    "public": ".output/public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ]
  }
}

λ firebase deploy

=== Deploying to 'project-79XXX'...

i  deploying firestore, functions, hosting
i  firestore: reading indexes from firestore.indexes.json...
i  cloud.firestore: checking firestore.rules for compilation errors...
+  cloud.firestore: rules file firestore.rules compiled successfully

Error: There was an error reading .output\server\package.json:

 .output\server\index.js does not exist, can't deploy Cloud Functions

Any example would be better.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Apr 19, 2022

There are lots of other deployment targets other than firebase. See https://nitro.unjs.io/guide/presets.html.

1reaction
danielroecommented, Apr 19, 2022

Yes, firebase requires that these are installed, with exception of firebase-functions-test.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Firebase Hosting - Google
Step 1: Install the Firebase CLI · Step 2: Initialize your project · Step 3: Deploy to your site.
Read more >
Deploy your app to firebase — in seconds! - Medium
In this quick post, we will see how to use the hosting service of Firebase and how to deploy your Web application really...
Read more >
Deploying to Firebase Hosting
Deploying to Firebase Hosting ... Read through our hosting quickstart to get your site up and running in minutes. Firebase Hosting is a...
Read more >
Firebase - Deploying - Tutorialspoint
Firebase - Deploying · Step 1 - Install Firebase Tools · Step 2 - Initialize the Firebase App · Step 3 - Deploy...
Read more >
How to deploy your web application on Firebase Hosting
Create a new Firebase project · Register your app with Firebase · Add the Firebase SDK · Install Firebase CLI · Deploy the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found