Skip to content

aalej/issues-7500

Repository files navigation

Repro for issue 7500

Versions

firebase-tools: v13.14.2
node: v20.9.0
platform: macOS Sonoma 14.5

Steps to reproduce

  1. Run npm i
  2. Run npm run build
  3. Run firebase deploy --project PROJECT_ID
  4. Open "https://SITE_ID.web.app" to verify if deployed. Note: You might have to hard refresh.
    • Shows page not found

Notes

Deploying using firebase-tools v13.11.2 works even when using "./*" in hosting.ignore array:

{
  "hosting": {
    "public": "./dist",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**",
      "*.sh",
      "./*"
    ],
    "headers": [
      {
        "source": "**",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "public, max-age=86000, s-maxage=86000"
          }
        ]
      }
    ],
    "rewrites": [
      { "source": "/image/**", "function": "api" },
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Deploying using firebase-tools v13.14.2 works after removing "./*" from hosting.ignore array:

{
  "hosting": {
    "public": "./dist",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**",
      "*.sh"
    ],
    "headers": [
      {
        "source": "**",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "public, max-age=86000, s-maxage=86000"
          }
        ]
      }
    ],
    "rewrites": [
      { "source": "/image/**", "function": "api" },
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published