Skip to content

bug: The default firestore.json file generates an array of functions #196

@kleber-swf

Description

@kleber-swf

Describe the Bug

Firebase 11.19.0 (dec/2022): running firebase init with functions setup generates the following snippet:

"functions": [
   {
      "source": "functions",
      "codebase": "default",
      "ignore": ["node_modules", ".git", "firebase-debug.log", "firebase-debug.*.log"]
   }
],
...

which is an array. The adapter expects an object.

Steps to Reproduce

  1. run firebase init and make sure you selected to setup firebase functions
  2. run npm run build
  3. The following error will throw: Error: Required "functions.source" field is missing from Firebase Configuration file.

Expected Behaviour

The adapter should accept this default configuration. Probably this will be the default to now on.

svelte-adapter-firebase version

0.14.4

sveltejs/kit version

1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions