Skip to content

URL rewrites not working on static assets with firebase deploy on firebase-tools@^13.9.0 #7363

Closed

Description

@wongchichong

firebase-tools:

Windows

firebase deploy --only hosting

with firebase-tools > v13.9.0

      {
        "source": "**",
        "destination": "/index.html"
      }

not working on static assets.
all graphics not loading.

downgrading to [email protected]

static assets works again.

Activity

  1. Fric56 commented on Jun 22, 2024

    @Fric56

    Same here.
    [email protected]) was the last version that worked for me.

  2. JackTezos commented on Jun 22, 2024

    @JackTezos

    Same!
    Thanks, switching to 13.9.0 saves me a lot of time!

  3. pogorv12 commented on Jun 24, 2024

    @pogorv12

    Same with me.

    I spotted that the number of deployed files decreased after update. So for me it looks like files located in subfolders of public dir are not deployed.

  4. aalej commented on Jun 24, 2024

    @aalej
    Contributor

    Hey folks, sorry to hear you’re encountering this issue and thanks for reporting this. At the moment, I can’t seem to reproduce the issue on macOS machines. However, I was able to reproduce this on a Windows machine.

    I’ll raise this to our engineering team so that we can investigate the cause of the issue. For those encountering this, could you let me know if you’re also using a Windows machine?

    As a workaround, please use v13.11.2. I was able to deploy to Firebase Hosting without any issues using this version.

  5. ksmutny commented on Jun 24, 2024

    @ksmutny

    Encountered the same problem. 13.11.2 works for me, 13.11.3 and 13.11.4 do not.

    Windows 11 Pro 23H2, Node 21.7.3., firebase-tools installed globally.

    Encountered also with a deploy from GitHub Actions, which runs on windows-latest.

    It seems to me the problem is not rewrites, but uploading the assets. I was unable to load them using the real path. (e.g. html/en/index.html). It happened on my production server, so I didn't investigate too much and redeployed using 13.11.2.

  6. pureimpro commented on Jun 24, 2024

    @pureimpro

    Same issue for me, on Windows, workaround by downgrading to 13.11.2, after numerous hours of headache

  7. Robula commented on Jun 25, 2024

    @Robula

    Likely related #7378

  8. self-assigned this
    on Jun 25, 2024
  9. Wrakie commented on Jun 26, 2024

    @Wrakie

    I spent the whole day trying to figure out what I did wrong 😭😭😭

  10. seborys40 commented on Sep 17, 2024

    @seborys40

    wtf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions