if you added a new URL prefix different from the first one you need to manually update Firebase hosting release history
you can do it by using firebase CLI
make sure firebase cli is installed
firebase login and select your project
run firebase init
make sure during project initialization, from the Firebase CLI
prompts:to select to set up Hosting and Functions
Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys
continue with the default option
once setup is completed it will generate public folder contained index.html 404.html, .firebaserc and firebase.json
then modify the firebase.json and add the following
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"appAssociation": "AUTO",
"rewrites": [ { "source": "/links/**", "dynamicLinks": true }, { "source": "/share/**", "dynamicLinks": true } ]
}
}
enter code here
- firebase deploy
please note that links and share are our 2 prefix you can change name to any you want and also note this prefix can be used by different subdomains as well