@@ -18,6 +18,14 @@ logic to {{cloud_functions_full}}.
1818
1919<<_ includes/_ preview-disclaimer.md>>
2020
21+ Caution: For developers creating a full-stack Next.js app, we strongly
22+ recommend [ Firebase App Hosting] ( /docs/app-hosting/ ) .
23+ If you're already using the frameworks experiment in the Firebase CLI, we
24+ recommend "graduating" to
25+ {{app_hosting}}. With {{app_hosting}}, you'll have a unified solution to manage
26+ everything from CDN to server-side rendering, along with improved GitHub
27+ integration.
28+
2129<<_ includes/_ before-you-begin.md>>
2230
2331- Optional: use the experimental ReactFire library to benefit from its
@@ -26,7 +34,7 @@ logic to {{cloud_functions_full}}.
2634<<_ includes/_ initialize-firebase.md>>
2735
28361 . Answer yes to "Do you want to use a web framework? (experimental)"
29- 1 . Choose your hosting source directory. If this an existing Next.js app,
37+ 1 . Choose your hosting source directory. If this is an existing Next.js app,
3038 the {{cli}} process completes, and you can proceed to the next section.
31391 . If prompted, choose Next.js.
3240
@@ -45,14 +53,14 @@ on its live site.
4553## Pre-render dynamic content
4654
4755The {{firebase_cli}} will detect usage of
48- [ getStaticProps] ( https://nextjs.org/docs/pages/building-your-application/data-fetching/get-static-props )
56+ [ getStaticProps] ( https://nextjs.org/docs/pages/building-your-application/data-fetching/get-static-props )
4957and [ getStaticPaths] ( https://nextjs.org/docs/pages/building-your-application/data-fetching/get-static-paths ) .
5058
5159### Optional: integrate with the Firebase JS SDK
5260
5361When including Firebase JS SDK methods in both server and client bundles, guard
5462against runtime errors by checking ` isSupported() ` before using the product.
55- Not all products are
63+ Not all products are
5664[ supported in all environments] ( /docs/web/environments-js-sdk#other_environments ) .
5765
5866Tip: consider using
@@ -69,7 +77,7 @@ and [getStaticPaths](https://nextjs.org/docs/basic-features/data-fetching/get-st
6977
7078The {{firebase_cli}} will detect usage of
7179[ getServerSideProps] ( https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props ) .
72- In such cases, the {{cli}} will deploy functions to {{cloud_functions_full}} to run dynamic
80+ In such cases, the {{cli}} will deploy functions to {{cloud_functions_full}} to run dynamic
7381server code. You can view information about these functions, such as their domain and runtime
7482configuration, in the [ Firebase console] ( https://console.firebase.google.com/project/_/functions ) .
7583
@@ -87,7 +95,7 @@ interoperate well together.
8795
8896### Redirects, Rewrites, and Headers
8997
90- The {{firebase_cli}} respects
98+ The {{firebase_cli}} respects
9199[ redirects] ( https://nextjs.org/docs/api-reference/next.config.js/redirects ) ,
92100[ rewrites] ( https://nextjs.org/docs/api-reference/next.config.js/rewrites ) , and
93101[ headers] ( https://nextjs.org/docs/api-reference/next.config.js/headers ) in
0 commit comments