Skip to content

Commit 4ad91f2

Browse files
authored
Merge pull request #15 from FullStacksDev/fix-remove-firebase-services-howto
Clarify and fix how-to guide on removing Firebase services
2 parents 0583d4a + 6f1bd2e commit 4ad91f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ You may not need the PWA bits in your app. Here's how you can remove them comple
404404
1. Remove the `@angular/service-worker` dependency from the [`app/package.json`](./app/package.json) file.
405405
- You'll need to run `pnpm install` in the top-level `app` folder to remove this dependency from your local `node_modules` folder and to update the `pnpm-lock.yaml` file.
406406

407-
### Removing Firebase services (like Functions)
407+
### Removing Firebase services (like Functions and Storage)
408408

409409
You may not need all the Firebase services in your app, especially Firebase Functions which requires a paid plan.
410410

@@ -416,13 +416,14 @@ Here's how to remove Firebase Functions from your app:
416416
- Remove the entries for the functions, pubsub and eventarc emulators.
417417
1. It's easier to just keep the `firebase/functions` and `firebase/common` folders as they are — they won't be used or deployed.
418418

419-
Here's how to remove a service like Firebase Storage from your app:
419+
Here's how to remove a service like Firebase Storage from your app (similar steps are applicable to Firestore and Realtime Database):
420420

421-
1. Make sure you don't enable the Storage service in the Firebase Console (for the live project).
421+
1. Make sure you don't enable the Storage service in the Firebase Console (when setting up your live project).
422422
1. Update [`firebase/firebase.json`](./firebase/firebase.json):
423423
- Remove the `storage` top level key.
424424
- Remove the entry for the storage emulator.
425425
1. Delete the security rules file: [`firebase/storage.rules`](./firebase/storage.rules).
426+
1. Delete the corresponding security rules test suite file: [`firebase/test/storage/storage-rules.spec.ts`](./firebase/test/storage/storage-rules.spec.ts).
426427
1. Make sure you don't use the `injectStorage` helper function in the frontend app.
427428

428429
> [!TIP]

0 commit comments

Comments
 (0)