mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-14 17:49:00 +08:00
43 lines
899 B
Markdown
43 lines
899 B
Markdown
---
|
|
id: deployment
|
|
title: Deployment to Firebase Hosting
|
|
sidebar_label: 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).
|
|
|
|
|
|
```json5
|
|
{
|
|
"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
|
|
```
|
|
|