Firebase Adapter

Qwik City Firebase Adapter allows you to connect Qwik City to Firebase.

Installation

To integrate the firebase adapter, use the add command:

The adapter will add a new vite.config.ts within the adapters/ directory, and a new entry file will be created, such as:

โ””โ”€โ”€ adapters/
    โ””โ”€โ”€ firebase
        โ””โ”€โ”€ vite.config.ts
โ””โ”€โ”€ src/
    โ””โ”€โ”€ entry-firebase.tsx

Additionally, within the package.json, the build.server and serve scripts will be updated.

Production build

To build the application for production, use the build command, this command will automatically run build.server and build.client:

Deploy to Firebase

Before deploy you need to setup your Firebase Credentials and add a Firebase project to the repository using these commands.

Done!

Contributors

Thanks to all the contributors who have helped make this documentation better!

  • leifermendez
  • mhevery
bun run qwik add firebase
npm run qwik add firebase
pnpm run qwik add firebase
yarn run qwik add firebase
bun run build
npm run build
pnpm run build
yarn run build
firebase login
firebase use --add
bun run deploy
firebase login
firebase use --add
npm run deploy
firebase login
firebase use --add
pnpm run deploy
firebase login
firebase use --add
yarn run deploy