Expo Router Web Firebase Hosting (static)

  1. SDK Version: ~49.0.3
  2. Platforms: Web

I have a basic Expo Router setup for Web and Native. I can serve the Static build for web locally without issue, but deployed to Firebase, i encounter the “something went wrong” error. The console doesn’t give much by the way of clues;

But i would assume this is something to do with the “static” rendering rather than “single”. But this is supposed to be supported from v2 of the Router?

My firebase.json looks like this;

{
  "hosting": {
    "public": "dist",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
    "headers": [
      {
        "source": "/**",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "no-cache, no-store, must-revalidate"
          }
        ]
      },
      {
        "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
        "headers": [
          {
            "key": "Cache-Control",
            "value": "max-age=604800"
          }
        ]
      }
    ]
  }
}

And my build is generated and deployed using the following;

"predeploy:web": "npx expo export -p web",
"deploy:hosting": "npm run predeploy:web && firebase deploy --only hosting"

The web config in app.json looks like so;

"web": {
      "bundler": "metro",
      "output": "static",
      "favicon": "./assets/images/favicon.png"
    },