Skip to content

Flutter build command not parsed correctly from firebase.json #9398

@TheCarpetMerchant

Description

@TheCarpetMerchant

[REQUIRED] Environment info

firebase-tools: 13.29.1

Platform: Windows

[REQUIRED] Test case

Use this snippet in firebase.json and run firebase deploy --only hosting

[REQUIRED] Steps to reproduce

  "hosting": {
    "public": "build/web",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "frameworksBackend": {
      "region": "europe-west1"
    },
    "predeploy": [
      "flutter build web --base-href /app/ --output build/web/app",
      "cp -r hosting/* build/web/"
    ],
    "rewrites": [
      {
        "source": "/app/**",
        "destination": "/app/index.html"
      }
    ]
  }

[REQUIRED] Expected behavior

Command runs

[REQUIRED] Actual behavior

i  deploying hosting
Running command: flutter build web --base-href /app/ --output build/web/app
Received a --base-href value of "\app\"
--base-href should start and end with /
node:events:496
      throw er; // Unhandled 'error' event
      ^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions