
To serve your Express app on Cloud Functions for Firebase, ensure that your Express app (orĮxpress-style URL handler) is exported in such a way that Firebase can find it Use rve to tell the CLI where your build script isĪfter configuring your app, you can serve static content with the standard Will allow you to make headless Chrome requests against a local instance of yourĪpp, so you can save the resulting HTML to be served on Hosting.įinally, different frameworks and build tools store their artifacts in different If your framework doesn’t support pre-rendering out of the box, consider using a "build": "spack & npm run static & npm run prerender", If you have a lot of steps,Ĭonsider a shell script or tooling like npm-run-all Tip: you can add additional steps using &. The Firebase CLI only calls your build script, so you’ll need to ensure that This is accomplished with the npm build script and CJS In order to know how to deploy your application, the Firebase CLI needs to beĪble to both build your app and know where your tooling places the assetsĭestined for Hosting. "source": "./path-to-your-express-directory"īefore deploying static content, you'll need to configure your application. Run the initialization command from the CLI and then follow the prompts:Ĭhoose your hosting source directory this could be an existing web app.Ĭhoose "Dynamic web hosting with web framework."Ĭhange your hosting config in firebase.json to have a source option, rather

To get started, initialize Firebase for your framework project. Optional: Billing enabled on your Firebase project Firebase CLI version 11.14.2 or later.Review the following requirements and options: Release is not subject to any SLA or deprecation policy and may receive limitedīefore you get started deploying your app to Firebase, That the functionality might change in backward-incompatible ways. Note: Framework-aware Hosting is an early public preview. To extend integration support to frameworks other than Angular and Next.js.

With some additional configuration, you can build on the basic
