kasy-cli 1.31.3 → 1.31.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/scaffold/generate.js +6 -1
- package/package.json +1 -1
package/lib/scaffold/generate.js
CHANGED
|
@@ -409,7 +409,12 @@ async function generateProject(targetDir, backend, options, hooks = {}) {
|
|
|
409
409
|
// `kasy new` without needing `kasy deploy` first. Fast (<30s), billing-free.
|
|
410
410
|
// Without this the project gets Firebase's default deny-all rules, causing
|
|
411
411
|
// every Firestore read to throw permission-denied and the app to log the user out.
|
|
412
|
-
|
|
412
|
+
//
|
|
413
|
+
// FIREBASE BACKEND ONLY. Supabase/API projects do have a Firebase project, but
|
|
414
|
+
// ONLY for FCM push — there is no Firestore there, so deploying firestore:rules
|
|
415
|
+
// is incoherent (it targets a database that doesn't exist) and just hangs for
|
|
416
|
+
// minutes. The data layer for those backends is Supabase/the REST API.
|
|
417
|
+
if (backend === 'firebase' && firebaseProjectId) {
|
|
413
418
|
onProgress('firestore-rules');
|
|
414
419
|
const rulesResult = await deployFirestoreRules(targetDir, firebaseProjectId);
|
|
415
420
|
steps.push({ name: 'firestore-rules', ok: rulesResult.ok, detail: rulesResult.ok ? null : rulesResult.error });
|