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
Section titled “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 initYou 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:
npm run build && firebase deploy --only hostingor
yarn run build && firebase deploy --only hostingto deploy.
npm run build
or
```bash## Deploying to other platforms
If you would like to deploy your CMS to other platforms, you can build itwith:yarn run build
and then serve the **dist** folder with your favorite static hosting provider.