{
    "hosting": {
        "public": "src/client",
        "ignore": [
            "firebase.json",
            "**/.*",
            "**/node_modules/**"
        ]
    },
    "database": {
        "rules": "src/server/database.rules.json"
    }
}

{
    "hosting": {
        "public": "src/client",
        "rewrites": [
            {
                "source": "**",
                "destination": "/index.html"
            }
        ],
        "ignore": [
            "firebase.json",
            "**/.*",
            "**/node_modules/**"
        ]
    },
    "database": {
        "rules": "src/server/database.rules.json"
    }
}

Add rewrite rule for 404.
Add rewrite rule for 404.
