Skip to main content
Version: 3.0.0-beta

Self-Hosted Deployment

FireCMS works as a headless CMS on top of Firebase. It builds as a single page application that can be deployed to any static hosting provider. It does not require any server-side code.

We recommend deploying to Firebase Hosting, as it is in the same ecosystem, and FireCMS will even pick up the Firebase config from the environment.

Deployment to Firebase Hosting

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 will need to init Firebase, either with an existing project or a new one:

firebase init
note

You don't need to enable any of the services, besides Firebase Hosting if you would like to deploy it there.

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

In order to make everything work as expected, you need to setup Firebase Hosting redirects to work as a SPA. Your firebase.json should look similar to this (remember to replace [YOUR_SITE_HERE]).

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

Then simply run:

yarn run build && firebase deploy --only hosting

to deploy.

Deploying to other platforms

If you would like to deploy your CMS to other platforms, you can build it with:

yarn run build

and then serve the dist folder with your favorite static hosting provider.

Sign up to our newsletter to get the latest news and updates. No spam!