You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,25 @@ you'll be given a list of supported frameworks to start with.
61
61
firebase init hosting
62
62
```
63
63
64
+
You should see the "source" option in your `firebase.json` rather than the traditional "public". This points to the
65
+
root directory of your application's source code, relative to your `firebase.json`.
66
+
67
+
```json
68
+
{
69
+
"hosting": {
70
+
"source": ".",
71
+
"ignore": [
72
+
"firebase.json",
73
+
"**/.*",
74
+
"**/node_modules/**"
75
+
],
76
+
"frameworksBackend": {
77
+
"region": "us-central1"
78
+
}
79
+
}
80
+
}
81
+
```
82
+
64
83
## Serve locally
65
84
66
85
You can test your integration locally by following these steps:
@@ -72,8 +91,33 @@ You can test your integration locally by following these steps:
72
91
73
92
When you're ready to share your changes with the world, deploy your app to your live site:
74
93
75
-
1. Run `firebase deploy` from the terminal.
76
-
2. Check your website on: `SITE_ID.web.app` or `PROJECT_ID.web.app` (or your custom domain, if you set one up)
94
+
1. Run `firebase deploy` from the terminal. This will build your application, detirmine if a backend is needed, and if so build and deploy a Cloud Function for you.
95
+
3. Check your website on: `SITE_ID.web.app` or `PROJECT_ID.web.app` (or your custom domain, if you set one up)
96
+
97
+
## Configuring your backend
98
+
99
+
In your `firebase.json` you can alter the configuration of the code-generated Cloud Function by editing the "frameworksBackend"
100
+
option. "frameworksBackend" takes the same options as [firebase-functions/v2/https.httpsOptions](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.https.httpsoptions)
0 commit comments