Files
firecms/website/docs/deployment.md
2021-06-26 16:35:51 +02:00

899 B

id, title, sidebar_label
id title sidebar_label
deployment Deployment to Firebase Hosting Deployment

If you would like to deploy your CMS to Firebase Hosting, you need to enable it first in the Hosting tab of your Firebase project.

You can link the Firebase hosting site to the webapp that you have created in order to get your Firebase condig.

In order to make everything work as expected, your firebase.json will look similar to this (remember to replace your site).

{
    "hosting": {
        "site": "[YOUR_SITE_HERE]",
        "public": "build",
        "ignore": [
            "firebase.json",
            "**/.*",
            "**/node_modules/**"
        ],
            "rewrites": [
            {
                "source": "**",
                "destination": "/index.html"
            }
        ]
    }
}

Then simply run:

yarn run build && firebase deploy --only hosting