We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b6c83 commit f6cb63aCopy full SHA for f6cb63a
src/deploy/firestore/prepare.ts
@@ -7,6 +7,8 @@ import { Options } from "../../options";
7
import * as fsConfig from "../../firestore/fsConfig";
8
import { logger } from "../../logger";
9
import { DeployOptions } from "..";
10
+import { ensure } from "../../ensureApiEnabled";
11
+import { firestoreOrigin } from "../../api";
12
13
export interface RulesContext {
14
databaseId: string;
@@ -72,6 +74,7 @@ function prepareIndexes(
72
74
* @param options The CLI options object.
73
75
*/
76
export default async function (context: any, options: DeployOptions): Promise<void> {
77
+ await ensure(context.projectId, firestoreOrigin(), "firestore");
78
if (options.only) {
79
const targets = options.only.split(",");
80
0 commit comments