From 03567ad5cfe6a10a2b0cd93cae1c06d7128017ec Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Tue, 8 Mar 2022 19:47:35 -0800 Subject: [PATCH] Set cloud functions environment --- firestore.rules | 1 - functions/.env | 1 + functions/.gitignore | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 functions/.env diff --git a/firestore.rules b/firestore.rules index 9e3c4b61..81772de6 100644 --- a/firestore.rules +++ b/firestore.rules @@ -5,7 +5,6 @@ service cloud.firestore { match /databases/{database}/documents { function isAdmin() { - return true return request.auth.uid == 'P0UsBCW7VmSR0co39kFlsjxWgLQ2' // Austin // || request.auth.uid == 'czxKSN1Z03Mzu7UqIio3ppM0eDt2' // David } diff --git a/functions/.env b/functions/.env new file mode 100644 index 00000000..0bfa1fb6 --- /dev/null +++ b/functions/.env @@ -0,0 +1 @@ +NEXT_PUBLIC_FIREBASE_ENV=SUPERSYNC diff --git a/functions/.gitignore b/functions/.gitignore index 8b54e3dc..e0ba0181 100644 --- a/functions/.gitignore +++ b/functions/.gitignore @@ -1,6 +1,3 @@ -# Secrets -.env* - # Compiled JavaScript files lib/**/*.js lib/**/*.js.map