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.

Purchase a PRO license

You can develop your project locally without a license, but you will need to purchase one to deploy it. There is a grace period after the first deployment to allow you to test it in production.

You can purchase a license in the FireCMS subscriptions site.

When creating your license, you need to specify the project IDs that will be using the license. You can find your project ID in the Firebase console.

You will receive an API key that you need to pass to your FireCMS component. If you are using the starter template, you can set it in the .env file.

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!